|
Posted by dimo414 on 01/22/07 21:12
Also, try using sprintf() - http://us3.php.net/sprintf
If you don't know about formatted strings, it's a way to make a static
string, and put variables inside it, for instance:
sprintf("I have %d eggs in my %d baskets", $eggs, $basket); returns 'I
have 30 eggs in my 3 baskets'.
At first, it seems convoluted and extra work, but once you get used to
them, formatted strings are a /very/ powerful tool.
[Back to original message]
|