Current Location: Home> Function Categories> cal_info

cal_info

Returns information about the specified calendar.
Name:cal_info
Category:Uncategorized
Programming Language:php
One-line Description:Returns information about the specified calendar.

Definition and usage

cal_info() function returns information about the specified calendar.

Example

Return information about the Gregorian calendar:

 <?php
print_r ( cal_info ( 0 ) ) ;
?>

Run the instance

grammar

 cal_info ( calendar ) ;
parameter describe
calendar

Optional. Specify a number indicating the calendar. The following constants can be used:

  • 0 = CAL_GREGORIAN
  • 1 = CAL_JULIAN
  • 2 = CAL_JEWISH
  • 3 = CAL_FRENCH

Tip: If the calendar parameter is omitted, cal_info() returns information about all calendars.

Similar Functions
Popular Articles