note 14123 deleted from function.date by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 01:11:17 +0000 |
| Subject: | note 14123 deleted from function.date by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20092@lists.php.net to get a copy of this message | ||
An important notice should be that PHP treats values starting with a zero as octal numbers (base 8.
I remember someone asking a question about the fact that "March 08" came out as
"March 00" = "February 28/29" (depending on the leap year).
well, that's the cause. I'm not exactly sure what the behaviour for octal numbers is in
strings, but you're best to avoid using the 2-digit versions of days, months, etc. in
calculations.