Re: A 5 digit question
| From: | Marek Kilimajer | Date: | Fri, 16 May 2003 17:00:35 +0000 |
| Subject: | Re: A 5 digit question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147929@lists.php.net to get a copy of this message | ||
echo str_pad(246, 5);
zavaboy wrote:
How can I make a number less than 5 digits into 5 digits by adding zeros to the end of the number? e.g. // Input: $n = 246; // Output: 24600 I'm somewhat new to PHP... I just joined this newsgroup too! Thanks in advance!