8.8 Calendrier
8 Référence des fonctions
Manuel PHP
. Introduction . Installation . Configuration à l'exécution . Types de ressources . Constantes pré-définies ->cal_days_in_month . cal_from_jd . cal_info . cal_to_jd . easter_date . easter_days . FrenchToJD . GregorianToJD . JDDayOfWeek . JDMonthName . JDToFrench . JDToGregorian . jdtojewish . JDToJulian . jdtounix . JewishToJD . JulianToJD . unixtojd
|
8.8.6 cal_days_in_month()Retourne le nombre de jours dans un mois, pour une année et un calendrier donné[ Exemples avec cal_days_in_month ] PHP 4 >= 4.1.0, PHP 5
int
cal_days_in_month (
int
calendar
,
int
month
,
int
year
)
cal_days_in_month
retourne le nombre de jours dans
le mois
month
de l'année
year
,
pour le calendrier
calendar
.
| Exemple avec cal_days_in_month |
<?php $num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); // 31 echo "Il y a $num jours en Août 2003"; ?>
|
Voir aussi
jdtounix
.
|