Fonction PHP cal_info()
Exemple
Renvoyer des informations sur le calendrier grégorien :
<?php
print_r(cal_info(0));
?>
Définition et utilisation
La fonction cal_info() renvoie des informations sur un calendrier spécifié.
Syntaxe
cal_info(calendar);
Valeurs des paramètres
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 |
Détails techniques
Valeur de retour : | Renvoie un tableau contenant des éléments de calendrier tels que :
|
---|---|
Version PHP : | 4.1+ |
Journal des modifications : | En PHP 5.0, le paramètre de calendrier est devenu facultatif |
❮ Référence du calendrier PHP