Easy Tutorial
❮ Func Misc Get Browser Php Mysql Prepared Statements ❯

PHP cal_info() Function

PHP Calendar Reference Manual

Example

Returns information about the Gregorian calendar:


Definition and Usage

The cal_info() function returns information about the specified calendar.

Syntax

Parameter Description
calendar Optional. Specifies a number representing the calendar to use. The following constants can be used: 0 = CAL_GREGORIAN<br> 1 = CAL_JULIAN<br> 2 = CAL_JEWISH<br> 3 = CAL_FRENCH. If the calendar parameter is omitted, cal_info() returns information about all calendars.

Technical Details

Return Value: Returns an array containing the following calendar elements: calname<br> calsymbol<br> month<br> abbrevmonth<br> maxdaysinmonth
PHP Version: 4.1+
--- ---
Changelog: The calendar parameter is optional since PHP 5.0.
--- ---
❮ Func Misc Get Browser Php Mysql Prepared Statements ❯