cal_days_in_month

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

cal_days_in_month锟斤拷锟斤拷某锟斤拷锟斤拷锟斤拷锟斤拷某锟斤拷锟斤拷某锟铰碉拷锟斤拷锟斤拷

说锟斤拷

cal_days_in_month ( int $calendar , int $month , int $year ) : int

锟矫猴拷锟斤拷锟斤拷锟斤拷锟截讹拷锟斤拷锟斤拷锟叫碉拷某锟斤拷锟叫碉拷某锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷

锟斤拷锟斤拷

calendar

锟斤拷锟斤拷锟斤拷锟斤拷锟侥筹拷锟斤拷锟斤拷锟�

month

选锟斤拷锟斤拷锟斤拷锟叫碉拷某锟斤拷

year

选锟斤拷锟斤拷锟斤拷锟叫碉拷某锟斤拷

锟斤拷锟斤拷值

指锟斤拷锟斤拷锟斤拷锟斤拷选锟斤拷锟斤拷某锟铰碉拷锟斤拷锟斤拷锟斤拷

锟斤拷锟斤拷

Example #1 cal_days_in_month() example

<?php
$num 
cal_days_in_month(CAL_GREGORIAN82003); // 31
echo "There was $num days in August 2003";
?>