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 |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | चुने गए महीने में, दिए गए वर्ष और कैलेंडर में दिनों की संख्या |
---|---|
पीएचपी संस्करण: | 4.1+ |
❮ पीएचपी कैलेंडर संदर्भ