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

From: Date: Tue, 21 Jun 2016 21:15:48 +0000
Subject: Doc #70534 [Opn->Ver]: See Also suggestion: sprintf, date
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13576@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: Open +Status: Verified Type: Documentation Problem Package: Unknown/Other Function PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

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