PHP : Function Reference : MCAL Functions : mcal_days_in_month
tmhesket_at_bradforddot_ac_dotuk
In case anyone gets confused in the same way I did, the "int leap year" parameter is not for the year itself.
"int leap year" is a boolean indicating whether the year in question is a leap year.
If you have $month and $year, you can find out the number of days easily:
mcal_days_in_month($month, mcal_is_leap_year($year))
|