Doc #70534 [Opn]: See Also suggestion: sprintf, date

From: Date: Sun, 20 Sep 2015 11:39:39 +0000
Subject: Doc #70534 [Opn]: See Also suggestion: sprintf, date
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12773@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 User updated by: ravenswd at gmail dot com Reported by: ravenswd at gmail dot com Summary: See Also suggestion: sprintf, date Status: Open Type: Documentation Problem Package: Unknown/Other Function PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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); ?> Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#12773) next »