Looking for assistance to step through what is happening here...
$sunday_ts = strtotime('-' . date('w', $base_time) . ' days', $base_time);
My final result is that I find locate sunday as the start of a week based on $base_time.
$base_time is established by:
if (!isset($_GET['base']))
{$base_time = time();}
else
{$base_time = $_GET['base'];}
Where I am getting lost is what is happening?
date('w',$base_time) is returning a number value of 0 - 6 depending on the day of the week...
Now how is that being used in the strtotime with the '-' and 'days' against the $base_time??
Looking to modify this to establish the "monday" as the start of the week.
Thanks much!