note 57769 added to function.date
| From: | mendoza at pvv dot ntnu dot no | Date: | Thu, 13 Oct 2005 17:38:50 +0000 |
| Subject: | note 57769 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96971@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57769
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57769&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57769&report=yes
Search -- http://master.php.net/manage/user-notes.php