PHPverse 2025

Voting

: max(one, four)?
(Example: nine)

The Note You're Voting On

scott dot gardner at mac dot com
17 years ago
In the last example of Example#6, there is an error regarding the output.

printf("[%10.10s]\n", $t); // left-justification but with a cutoff of 10 characters

This outputs right-justified.

In order to output left-justified:

printf("[%-10.10s]\n", $t);

<< Back to user notes page

To Top