I have a problem with the date of Monday this week.
echo date('Ym-d',strtotime('monday this week'));
When I run the above code on my local machine (PHP 5.3), it correctly displays "2011-03-07", but the same code on my server (PHP 5.2) displays "2011-03-14" (which is Monday on next week).
I tried running the date ('W') on both machines and I get the same result (10).
Edit: Any ideas how to get this work right?
Thanks in advance.
php strtotime
Stefan O.
source share