PHP: [ Select all ]
$num_days = cal_days_in_month(CAL_GREGORIAN, $month, $year);
$num_days = round((mktime(0,0,0,$month+1,1,$year) - mktime(0,0,0,$month,1,$year))/86400);
output generated using printer-friendly topic mod. All times are GMT - 7 Hours