📅  最后修改于: 2022-03-11 14:53:40.351000             🧑  作者: Mango
$begin = new DateTime( "2015-07-03" );
$end = new DateTime( "2015-07-09" );
for($i = $begin; $i <= $end; $i->modify('+1 day')){
echo $i->format("Y-m-d");
}