RE: [PHP] Zerofill

2002-12-30 Thread Rudolf Visagie
http://www.php.net/manual/en/function.str-pad.php or use sprintf, e.g. $formatted = sprintf("%012.2f", $value); pads $value up to 12 digits to the left with zero's. -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:22 PM To: [EMAIL PROTECT

Re: [PHP] Zerofill

2002-12-30 Thread Jason k Larson
How about: http://www.php.net/manual/en/function.str-pad.php HTH, Jason k Larson Cesar Aracena wrote: Hi all, Sorry to bother you all, but I need something I haven't used in quite a long time. Dows anyone remembers the PHP function to fill a number with zeros until it reaches a desired length