function isLastDayOfMonth($month, $day, $year) { $nextDay = mktime (0, 0, 0, $month, $day + 1, $year); return strftim("%m", $nextDay) == $month; }