返回一个月中的天数

date

  cal_days_in_month() 函数针对指定的年份和日历,返回一个月中的天数。

  

参数描述
calendar 必需。规定要使用的历法。
month 必须。规定月。
year 必须。规定年。
<?php
$d=cal_days_in_month(CAL_GREGORIAN,10,2005);
echo("There was $d days in October 2005");
?>
原文地址:https://www.cnblogs.com/ldms/p/8317923.html