Retrieve information about the Gregorian calendar.
| <?php print_r(cal_info(0)); ?> |
The cal_info() function provides information about a specified calendar system.
| cal_info(calendar); |
|
Parameter |
Description |
|
calendar |
Optional. Specifies a number indicating which calendar to return information about:
Tip: If the calendar parameter is omitted, cal_info() returns information about all calendars. |
|
Return Value: |
Returns an array containing calendar elements such as:
|
|
PHP Version: |
4.1+ |
|
Changelog: |
In PHP 5.0, the calendar parameter became optional. |