دالة PHP cal_days_in_month ()
مثال
احصل على عدد الأيام في الشهر لسنة وتقويم محددين:
<?php
$d=cal_days_in_month(CAL_GREGORIAN,10,2005);
echo "There was $d days in October 2005";
?>
التعريف والاستخدام
ترجع الدالة cal_days_in_month () عدد الأيام في الشهر للسنة والتقويم المحددين.
بناء الجملة
cal_days_in_month(calendar,month,year);
قيمه المعامل
Parameter | Description |
---|---|
calendar | Required. Specifies the calendar to use. Look at the PHP Calendar Constants |
month | Required. Specifies the month in the selected calendar |
year | Required. Specifies the year in the selected calendar |
تفاصيل تقنية
قيمة الإرجاع: | عدد الأيام في الشهر المحدد ، في السنة والتقويم المحددين |
---|---|
إصدار PHP: | 4.1+ |
❮ مرجع تقويم PHP