php判断某年某月有多少天
<?phpfunctionyearMonthDays($year,$month){if(in_array($month,array(1,3,5,7,8,01,03,05,07,08,10,12))){return'31';}elseif($month==2){if($year%400==0||($year%4==0&&$year%100!==0)){//判断是否是闰年return'29';}else{return'28';}}else{return'30';}}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。