Copyright © 2014 by tutorialspoint
This function will return the number of days in the month of year for the specified calendar.
The length in days of the selected month in the given calendar.
Try out following example:
$num = cal_days_in_month(CAL_GREGORIAN, 8, 2003);
echo "There was $num days in August 2003";
This will produce following result:
There was 31 days in August 2003