Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

format number

Status
Not open for further replies.

curvv

IS-IT--Management
Jan 11, 2001
103
ZA
Hi,

Can I use number_fromat to display 1 as 0001 ?

thanx
chris ######## CtN ########
 
i don't know ... but i can tell you that
$var=1;
printf("%04d",$var)


works just fine.
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Hi,

thanx alot

Chris

######## CtN ########
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top