Max days in a month with PHP

function get_max_days_in_month($month, $year) {
 
	$getdate = getdate(mktime(null, null, null, $month + 1, 0, $year));
 
	return $getdate['mday'];
}

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>