|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-09-20 11:03 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
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); ?>