DatePeriod (+ DateInterval + DateTime) ?
Exemple :
Exemple :
Code :
$start = new DateTime('2009-01-01');
$end = new DateTime('2009-02-01');
foreach (new DatePeriod($start, new DateInterval('P1D'), $end) as $dt) {
echo $dt->format('Y-m-d'), PHP_EOL;
}