PHP cal_info() Function
Example
Returns information about the Gregorian calendar:
<?php print_r(cal_info(0)); ?>
Definition and Usage
The cal_info() function returns information about the specified calendar.
Syntax
cal_info(calendar);
Parameter | Description |
---|---|
calendar |
Optional. Specify a number indicating the calendar. The following constants can be used:
Tip:If calendar If the parameter is omitted, cal_info() returns information about all calendars. |
Technical Details
Return Value: |
Returns an array containing the following calendar elements:
|
---|---|
PHP Version: | 4.1+ |
Update Log: | In PHP 5.0,calendar The parameter is optional. |