Is there a way to put the last 40 sundays into an array with php? I don't get it right now.
tried the following
$week_array = array();
$last_s = date('Y-m-d',strtotime('last sunday'));
array_push($week_array, $last_s);
for ($i = 0; $i <= 40; $i++ ) {
$last_s = $last_s - 7;
array_push($week_array, $last_s);
}