Say you want to get a set of timestamps so that you can query a database for all records that fall between the start of this week, and the end of this week. One would logically try something like:
$start_of_week = strtotime("this monday"); // Or "monday this week"
$end_of_week = strtotime("next monday - 1 second"); // Or "monday next week - 1 second"
That will, in theory, give you a date range of Monday at 00:00:00, and […]