Re: [PHP4BETA] re: sprintf

From: Date: Mon, 07 Feb 2000 03:56:00 +0000
Subject: Re: [PHP4BETA] re: sprintf
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9888@lists.php.net to get a copy of this message
Are you saving it as a number type, or as a string type. If a number type, you can't have leading zeors. You will have to save it as a string type, and convert when you need it. at least that's how I read it. bob http://www.chalmers.com.au Clipart And Books Art, Design and Graphics. ----- Original Message ----- From: "Joseph H Blythe" <joe.blythe@binarylogic.com.au> To: <php4beta@lists.php.net> Sent: Monday, February 07, 2000 1:47 PM Subject: [PHP4BETA] re: sprintf > Hey all, > > Could some one please explain to me in layman's terms how the > specifier's in the sprintf function work, all I basically want to do is > to prepend zeros to a number always making sure it is 16 characters > long, Ive tried various things and looked at the examples but I can't > seem to wrap my tiny mind around it. > > As always any help is very much appreciated :) > > Joseph H Blythe > > mailto:joe.blythe@binarylogic.com.au > > > > > > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > >

« previous php.version4 (#9888) next »