|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-30 22:59 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: Strings related
[2020-04-21 16:34 UTC] nikic@php.net
-Assigned To:
+Assigned To: nikic
[2020-06-19 10:23 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2020-06-19 10:23 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
Description: ------------ PHP's printf does not support variable width/precision. Compare that with "printf '%*s' 10 'foobar'" in a shell script. Reproduce code: --------------- <?php $length = 10; printf("%*s", $length, "foobar"); ?> Expected result: ---------------- foobar Actual result: -------------- s