Return information about the Gregorian calendar:
<?php
print_r(cal_info(0));
?>
Run Example »
The cal_info() function returns information about a specified calendar.
cal_info(
calendar);
Parameter | Description |
---|---|
calendar | Optional. Specifies a number that indicates which calendar to return information about:
Tip: If the calendar parameter is omitted, cal_info() returns info about all calendars |
Return Value: | Returns an array containing calendar elements like:
|
---|---|
PHP Version: | 4.1+ |
Changelog: | In PHP 5.0 the calendar parameter became optional |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!