[thelist] PHP coding help
R.Livsey
R.Livsey at cache-22.co.uk
Mon Sep 10 04:51:16 CDT 2001
> Just a tip: your pad() function is really unnecessary, since
> PHP already has the sprintf() function for this purpose. To
> left-pad a string with zeros, you can use this:
>
> $id = sprintf("%05d", $id);
>
>
> charles johnson
> lgf web design
> http://littlegreenfootballs.com
>
ooooh, good point!
Cheers, will look into that some more.
R.Livsey
------------------------------------------
Money Isn't Everything, But It Sure Keeps The Kids In Touch
------------------------------------------
Lead Programmer for the Tickle Group
Freelance work always welcome
[ PHP | Perl | mySQL | Java ]
w : cache-22.co.uk
e : R.Livsey at cache-22.co.uk
m : +447764 685 701
i : 37530949
More information about the thelist
mailing list