note 8736 added to printf
| From: | adamanth at yahoo dot com | Date: | Tue, 26 Sep 2000 08:55:37 +0000 |
| Subject: | note 8736 added to printf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5372@lists.php.net to get a copy of this message | ||
anyone know how to left fill zeros on an integer?
my $first = #
my $second = 65000
my $third=48J
printf ( fill this in )
to get:
#0065000.0048J
(first&third are constants, second can be 0000000.00 - 9999999.99
http://www.php.net/manual/function.printf.php