note 57769 deleted from function.date by felipe
| From: | felipe@php.net | Date: | Sat, 05 Jan 2008 01:54:43 +0000 |
| Subject: | note 57769 deleted from function.date by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134792@lists.php.net to get a copy of this message | ||
Note Submitter: mendoza at pvv dot ntnu dot no
----
At "daykay at pdsoftware dot de":
09 != 9 so there's nothing wrong about European vs. American formats.
$ php -r 'print 09; print "\n"; print 9; print "\n";'
0
9
09 is treated as octal and since octal numbers only use the 0-7 digits, it evaluates to 0. All
numbers prefixed with 0 are considered octal just as 0x are considered hexadecimal.
http://en.wikipedia.org/wiki/Computer_numbering_formats