printf(): more examples

\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 ?>