note 39324 deleted from function.number-format by tomsommer
| From: | tomsommer@php.net | Date: | Sat, 24 Jan 2004 16:08:05 +0000 |
| Subject: | note 39324 deleted from function.number-format by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64117@lists.php.net to get a copy of this message | ||
Note Submitter:
----
the eaysiest way to add leadin zeros:
$int = 666;
$chars = 5;
$int = str_repeat("0", $chars - strlen($int)).$int;