How do I format the output of a string?
There are a large range of uses for this function and rather than repeat the detailed documentation, take a look at the PHP manual page on sprintf here:
http://uk3.php.net/manual/en/function.sprintf.php
Comment on this Question and Answer >>>
ASK A QUESTION
More strings PHP Questions
How do I print the " in an echo statement?How do I remove trailing whitespace from a string?
print(1 . " + " . 2 . " = " . 1+2 . "n"); gives answer 3 why?
How do I make the contents of a string upper case?
How do I calculate the MD5 hash of a string?
