Get the timestamp for the last day of a month (PHP)

mktime(null, null, null, $month, date('t', mktime(null, null, null, $month, 1, $year)), $year)