#35474 [Csd->Bgs]: Error in date() Examples
| From: | vrana@php.net | Date: | Tue, 29 Nov 2005 12:46:07 +0000 |
| Subject: | #35474 [Csd->Bgs]: Error in date() Examples | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969371048@lists.php.net to get a copy of this message | ||
ID: 35474
Updated by: vrana@php.net
Reported By: dave at ilovejackdaniels dot com
-Status: Closed
+Status: Bogus
Bug Type: Documentation problem
Operating System: Any
PHP Version: Irrelevant
New Comment:
Not a bug.
Previous Comments:
------------------------------------------------------------------------
[2005-11-29 13:34:24] dave at ilovejackdaniels dot com
Ahhh. My mistake - thanks.
------------------------------------------------------------------------
[2005-11-29 13:32:29] sniper@php.net
Not inside single quotes.
------------------------------------------------------------------------
[2005-11-29 13:23:02] dave at ilovejackdaniels dot com
Description:
------------
There is an error in the examples of date() usage:
$today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day.
and:
$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:17 m is month
\t in date() will produce a tab rather than a "t". The "t"s above
should be double-escaped, or the outputs should be changed to show tabs
instead of "t"s.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35474&edit=1