在这里插入代码片
/**
* 获取所有日期
*/
public function get_days($start_time,$end_time){
$date = [];
$count = ceil((strtotime($end_time)-strtotime($start_time))/60/60/24);
for ($i=0; $i<=$count; $i++){
$date[$i] = date('Y-m-d' ,strtotime( '+' . $i .' days', strtotime($start_time)));
}
return $date;
}