← All docs
cal_days_in_month()
Returns the number of days in a month of the given calendar and year.
cal_days_in_month()
function cal_days_in_month(int $calendar, int $month, int $year): int
Returns the number of days in a month of the given calendar and year.
Parameters:
$calendar(int)$month(int)$year(int)
Returns: int
Availability
- Compiled (AOT): supported through the Elephc compiler.
eval()(magician interpreter): supported through the procedural date/time alias dispatcher.
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how cal_days_in_month is implemented in the compiler, see the internals page.