📌  相关文章
📜  在php代码示例中查找名称在两个日期之间的日期

📅  最后修改于: 2022-03-11 14:54:00.535000             🧑  作者: Mango

代码示例3
$from_date ='01-01-2013';
$to_date ='05-01-2013';

$from_date = new DateTime($from_date);
$to_date = new DateTime($to_date);

for ($date = $from_date; $date <= $to_date; $date->modify('+1 day')) {
  echo $date->format('l') . "\n";
}