Hi,
I really need to work out what day of the month the first day of the week is based on a date I pass through a query string.
At the moment I am able to work out what the first date of this week is using:
$day_in_month = date('d', strtotime('last monday'));
However, the documentation for strtotime is a bit weak and i'm not really understanding it.
If I pass something like : 2006-12-24 00:00:00 through the query string, how can I find out what day in the month the first day of the week is (which should be December 18th)?.
Many Thanks,