Re: strange behaviour with strtotime()
| From: | Barry | Date: | Tue, 31 Jan 2006 13:29:28 +0000 |
| Subject: | Re: strange behaviour with strtotime() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229539@lists.php.net to get a copy of this message | ||
James Benson wrote:
The case makes no difference, because... echo date('r', strtotime ("next Month"))."\n"; echo date('r', strtotime ("next month"))."\n"; I was referring here to a note on php.net ->For those upgrading from PHP 4 to PHP 5 there are a number of things that are different about strtotime that I have NOT seen documented elsewhere, or at least not as clearly. I confirmed these with two separate fresh installations of PHP 4.4.1 and PHP 5.1.1. 5) Some uppercase and mixed-case strings no longer parse correctly. In php4 "Yesterday" would parse correctly. In php5 "Yesterday" will return the infamous 1969 date. This is also true of Tomorrow and Today. -- Smileys rule (cX.x)C --o(^_^o)