Returns Gregorian calendar information:
<?phpprint_r(cal_info(0));?>The cal_info() function returns information about the specified calendar.
cal_info( calendar);
| parameter | describe |
|---|---|
| calendar | Optional. Specifies a number indicating the calendar to use. The following constants can be used: 0 = CAL_GREGORIAN 1 = CAL_JULIAN 2 = CAL_JEWISH 3 = CAL_FRENCH Tip: If the calendar argument is omitted, cal_info() returns information about all calendars. |
| Return value: | Returns an array containing the following calendar elements: calname calsymbol month abbrevmonth maxdaysinmonth |
|---|---|
| PHP version: | 4.1+ |
| Update log: | In PHP 5.0, the calendar parameter is optional. |