note 63616 added to function.date
| From: | king_of_plugsATyahoodotcom at osu1 dot php dot net | Date: | Sat, 25 Mar 2006 19:59:20 +0000 |
| Subject: | note 63616 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106597@lists.php.net to get a copy of this message | ||
it seems that o (lowercase "Oh") has the same meaning as Y, it prints the year with four
numbers (e. g. "2006"), so
<?php
date("l dS of F Y");
?>
will NOT give you "Wednesday 22nd of March 2006" (but rather Wednesday 22nd 2006f March
2006), you gotta escape the o:
<?php
date("l dS \of F Y");
?>
----
Server IP: 212.124.37.9
Probable Submitter: 80.131.27.68
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/note/edit/63616
Del: integrated -- http://master.php.net/note/delete/63616/integrated
Del: useless -- http://master.php.net/note/delete/63616/useless
Del: bad code -- http://master.php.net/note/delete/63616/bad+code
Del: spam -- http://master.php.net/note/delete/63616/spam
Del: non-english -- http://master.php.net/note/delete/63616/non-english
Del: in docs -- http://master.php.net/note/delete/63616/in+docs
Del: other reasons-- http://master.php.net/note/delete/63616
Reject -- http://master.php.net/note/reject/63616
Search -- http://master.php.net/manage/user-notes.php