nimeijian 2019-10-24
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; }