Funkce PHP cal_info().
Příklad
Vrátit informace o gregoriánském kalendáři:
<?php
print_r(cal_info(0));
?>
Definice a použití
Funkce cal_info() vrací informace o zadaném kalendáři.
Syntax
cal_info(calendar);
Hodnoty parametrů
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 |
Technické údaje
Návratová hodnota: | Vrátí pole obsahující prvky kalendáře jako:
|
---|---|
Verze PHP: | 4.1+ |
Seznam změn: | V PHP 5.0 se parametr kalendáře stal volitelným |
❮ Reference kalendáře PHP