PHP cal_info () function
Definition and Usage
cal_info () function returns information about the specified calendar.
grammar
cal_info( calendar);
参数 | 描述 |
---|---|
calendar | 可选。规定一个表示要使用的历法的数字。可以使用下面这些常量:
提示:如果 calendar 参数被省略,cal_info() 返回有关所有历法的信息。 |
technical details
return value: | It returns an array containing the following elements of the calendar:
|
---|---|
PHP version: | 4.1+ |
Update log: | In PHP 5.0 in, calendar parameter is optional. |
PHP Calendar Reference Manual