/**
* 返回两个时间戳之间日期数组
* @param $start_date
* @param $end_date
* @return array
*/
function dateToRang($start_date,$end_date)
{
$res = [];
while ($start_date < $end_date) {
$start_date = strtotime('+1 day',$start_date);
$res[] = strtotime(date("Ymd",$start_date));
}
return $res;
}
欢迎评论加好友 VX qubojie