how to format a number in php?

  • Thread starter Thread starter Nay
  • Start date Start date
N

Nay

Guest
Hi,

I am using php and have a number that may be anything from 1 to 9999.
I need the result of this number to be out putted as a 4 digit number. E.G. 0001 , 0015, 0523, 8256

How can I do this?
 
Back
Top