Return information about the Gregorian calendar:
The cal_info() function returns information about a specified calendar.
Parameter | Description |
---|---|
calendar | Optional. Specifies a number that indicates which calendar to return
information about:
Tip: If the calendar parameter is omitted, cal_info() returns info about all calendars |
Return Value: | Returns an array containing calendar elements like:
|
---|---|
PHP Version: | 4.1+ |
Changelog: | In PHP 5.0 the calendar parameter became optional |