How to implement the function ?
So it'll output an array containing 2009-12-25 2009-12-26 2009-12-27 2009-12-28 2009-12-29 2009-12-30?
How to implement the function ?
So it'll output an array containing 2009-12-25 2009-12-26 2009-12-27 2009-12-28 2009-12-29 2009-12-30?
$startdate = strtotime("2009-12-25");
$enddate = strtotime("2009-12-30");
$steps = "1 day";
# Start
$date = $startdate;
while ($date <= $enddate)
{ echo date("Y-m-d", $date)."<br>";
$date = strtotime ("+".$steps, $date); // can be slow with large arrays,
// you can also just add 60*60*24 seconds
// to $date
}