PHP cal_days_in_month() Function
The cal_days_in_month() function returns the number of
days in a month for a specified year and calendar.
Syntax
cal_days_in_month(int $calendar, int $month, int $year): int
Parameters
calendar: Calendar to use (CAL_GREGORIAN, CAL_JULIAN, CAL_JEWISH, CAL_FRENCH).month: Month as a number.year: Year as a number.
Try It Online
Output
Click Run to execute your code
Related Functions
- cal_info() - Returns information about a particular calendar
Enjoying these tutorials?