cal_info

cal_info

cal_info

cal_info
It returns information about a particular calendar
PHP accepts a 4 types of Calendar are

0    -    Gregorian Calendar
1    -    Julian Calendar
2    -    Jewish Calendar
3    -    French Calendar

Syntax:

array cal_info ( int calendar)

Example:

$cal = cal_info(0);
print_r($cal);

The result in the $cal is

Array
(
[months] => Array ( [1] => January [2] => February [3] => March [4] => April [5] => May [6] => June [7] => July [8] => August [9] => September

[10] => October [11] => November [12] => December )
[abbrevmonths] => Array ( [1] => Jan [2] => Feb [3] => Mar [4] => Apr [5] => May [6] => Jun [7] => Jul [8] => Aug [9] => Sep [10] => Oct [11]

=> Nov [12] => Dec )
[maxdaysinmonth] => 31
[calname] => Gregorian
[calsymbol] => CAL_GREGORIAN
)

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.