I've got some weird behavior using PHP 4.3.9. I use the function of
strtotime("last Sunday"); and it's returning the timestamp for last
Saturday. However, if I use strtotime("-1 day"); (I'm running this program
on a Monday) it returns the correct timestamp for Sunday.
Is this a bug in PHP 4.3.9?
Probably. 5.1.2 says:
$x = strtotime("last Sunday");
print ( date('r', $x) );
Sun, 02 Apr 2006 00:00:00 -0800
4.3.9 is *really* old.
-philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php