写出一个函数,参数为年份和月份,输出结果为指定月的天数

Function day_count($year,$month){
  Echo date("t",strtotime($year."-".$month."-1"));
}
$y = 2018;
$m = 12;
day_count($y,$m);

posted @ 2020-12-04 20:19  诸天一根草凡尘一粒沙  阅读(546)  评论(0编辑  收藏  举报