php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35474 Error in date() Examples
Submitted: 2005-11-29 13:23 UTC Modified: 2005-11-29 13:46 UTC
From: dave at ilovejackdaniels dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dave at ilovejackdaniels dot com
New email:
PHP Version: OS:

 

 [2005-11-29 13:23 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-29 13:32 UTC] sniper@php.net
Not inside single quotes.
 [2005-11-29 13:34 UTC] dave at ilovejackdaniels dot com
Ahhh. My mistake - thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 22:00:03 2025 UTC