Re: A 5 digit question

From: Date: Fri, 16 May 2003 17:05:25 +0000
Subject: Re: A 5 digit question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147931@lists.php.net to get a copy of this message
On Fri, 16 May 2003 12:39:46 -0400, you 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 $n = 246; echo (str_pad($n, 5, "0", STR_PAD_RIGHT));

« previous php.general (#147931) next »