note 93856 deleted from function.phpversion by danbrown

From: Date: Thu, 15 Oct 2009 16:44:06 +0000
Subject: note 93856 deleted from function.phpversion by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161780@lists.php.net to get a copy of this message
Note Submitter: ravey at alum dot mit dot edu ---- After struggling with using strtotime() to find the next Thursday, on two servers, one running PHP 5.2.5 and the other PHP 4.3.11, the order of words in the format string makes all the difference. On 10/03/2009, I got these results (2009-10-08 is the correct result): +-----------------------------+------------+-------------+ | | 5.2.5 | 4.3.11 | +-----------------------------+------------+-------------+ | strtotime('next thursday') | 2009-10-08 | 2009-10-15 | +-----------------------------+------------+-------------+ | strtotime('thursday next') | 1969-12-31 | 2009-10-08 | +-----------------------------+------------+-------------+

« previous php.notes (#161780) next »