- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
function lastDay($month, $year) {
if ($month != 12) {
$m = $month + 1;
$y = $year;
} else {
$m = 1;
$y = $year + 1;
}
return strftime("%d", mktime(0, 0, 0, $m, 0, $y));
}