PHP - Function cal_info()
cal_info ( [$calendar] );
Definition and Usage
The cal_info() function returns an array that contains information about a given calendar. The array contains the following elements: calname, calsymbol, month, abbrevmonth and maxdaysinmonth.
|calendar||Optional. Specifies the calendar. The following calendar values can be used:
Array that contains information about a given calendar.
Try out following example:
<?php $info = cal_info(0); print_r($info); ?>
This will produce following result:
Array ( [months] > Array (  > January  > February  > March  > April  > May  > June  > July  > August  > September  > October  > November  > December ) [abbrevmonths] > Array (  > Jan  > Feb  > Mar  > Apr  > May  > Jun  > Jul  > Aug  > Sep  > Oct  > Nov  > Dec ) [maxdaysinmonth] > 31 [calname] > Gregorian [calsymbol] > CAL_GREGORIAN )