- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$month = "05";
$year = "2014";
$start_date = "01-".$month."-".$year;
$start_time = strtotime($start_date);
$end_time = strtotime("+1 month", $start_time);
for($i=$start_time; $i<$end_time; $i+=86400)
{
$list[] = date('Y-m-d-D', $i);
}
print_r($list);