I am very new to PHP and I am trying to make a PHP webpage that prints out every day of the 2013 year like:
January 1, 2013
January 2, 2013
...........
...........
December 31, 2013
I have been playing with different variations of this code below, but I can't get the date to increment more than once.
$date = "2013-01-01";
for ($counter = 0; $counter <= 365; $counter++) {
$newdate = strtotime('+1 day', strtotime($date));
$newdate = date('Y-m-j', $newdate);
echo "$newdate<br>";
}