Doc #70534 [Ver->Csd]: See Also suggestion: sprintf, date
| From: | cmb@php.net | Date: | Tue, 21 Jun 2016 21:21:34 +0000 |
| Subject: | Doc #70534 [Ver->Csd]: See Also suggestion: sprintf, date | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13577@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70534&edit=1
ID: 70534
Updated by: cmb@php.net
Reported by: ravenswd at gmail dot com
Summary: See Also suggestion: sprintf, date
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Unknown/Other Function
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2016-06-21 21:20:01] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339444
Log: Fix #70534: See Also suggestion: sprintf, date
------------------------------------------------------------------------
[2016-06-21 21:15:48] cmb@php.net
I agree to what requinix said, but the sprintf() man page already
lists number_format(), so I think that adding date() is
acceptable. Adding a link from date() to sprintf(), however,
appears to be rather pointless.
------------------------------------------------------------------------
[2015-09-20 11:39:39] ravenswd at gmail dot com
Q: How does sprintf() help me work with dates?
A: From the sprintf page itself:
Example #9 sprintf(): zero-padded integers
<?php
$isodate = sprintf("%04d-%02d-%02d", $year, $month, $day);
?>
------------------------------------------------------------------------
[2015-09-20 11:11:01] requinix@php.net
How does date() help me work with formatting strings and numbers? How does sprintf() help me work
with dates? I think this would be more misleading and confusing than anything.
------------------------------------------------------------------------
[2015-09-20 11:03:32] ravenswd at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.sprintf
---
On the sprintf page, the "See Also" section should include a link to the "date"
function, since that also deals with formatting output. Similarly, the See Also on date should link
to sprintf.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70534&edit=1