public function printDates($start, $end)
{
$dt_start = strtotime($start);
$dt_end = strtotime($end);
while ($dt_start <= $dt_end) {
$date[date('Y-m-d', $dt_start)] = [];
$dt_start = strtotime('+1 day', $dt_start);
}
return $date;
}
php 输出两个指定日期中间的所有时间
最新推荐文章于 2022-06-06 16:36:47 发布