function getMonDate($start,$end){ $monArr=array(); $dt_start = strtotime($start); $dt_end = strtotime($end); while ($dt_start<=$dt_end){ $monArr[]=date(‘Y-m-d‘,$dt_start); $dt_start = strtotime(‘+1 day‘,$dt_start); } return $monArr; }
原文地址:https://www.cnblogs.com/leaf-blog/p/11731571.html
时间: 2024-11-01 19:39:26