- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$startDate = "2009-10-11";
$endDate = "2010-01-20";
$dates = array();
$temp = $startDate;
do {
$dates[] = $temp;
$temp = date("Y-m-d", strtotime("+1 week", strtotime($temp)));
} while (strtotime($temp) < strtotime($endDate));
print_r($dates);