I need to loop through dates to get the block of 1 days each. So that way I need total of 10 days. I tried this code, but that isn't working.
for($i=0; $i<=10;$i++)
{
$dates=date("Y-m-d", strtotime($current_date, "+1 days"));
$tmp_array[$i]=$dates;
debug($date);
}
I get this error that prints infinite times.
Notice: A non well formed numeric value encountered in /Path/to/the/file on line 45
2014-12-03