PHP cal_info() Function
Example
Return information about the Gregorian calendar:
Run Example »
Definition and Usage
The cal_info() function returns information about a specified calendar.
Syntax
cal_info(
calendar);
| Parameters | Description |
|---|---|
| calendar | Optional. Specifies a number representing the calendar to use. The following constants can be used:
|
Tip:If both the 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:
- calname
- calsymbol
- month
- abbrevmonth
- maxdaysinmonth
PHP Calendar Reference Manual