diff --git a/reference/strings/functions/sprintf.xml b/reference/strings/functions/sprintf.xml index 395c063a19..890c436fff 100644 --- a/reference/strings/functions/sprintf.xml +++ b/reference/strings/functions/sprintf.xml @@ -1,5 +1,5 @@ - + @@ -245,6 +245,7 @@ printf("[%s]\n", $s); // standard string output printf("[%10s]\n", $s); // right-justification with spaces printf("[%-10s]\n", $s); // left-justification with spaces printf("[%010s]\n", $s); // zero-padding works on strings too +printf("[%'#10s]\n", $s); // use the custom padding character '#' printf("[%10.10s]\n", $t); // left-justification but with a cutoff of 10 characters ?> ]]> @@ -258,6 +259,7 @@ printf("[%10.10s]\n", $t); // left-justification but with a cutoff of 10 charact [ monkey] [monkey ] [0000monkey] +[####monkey] [many monke] ]]>