Jump to content


Photo

formatting number - adding zeroes


  • Please log in to reply
2 replies to this topic

#1 fooDigi

fooDigi
  • Members
  • PipPipPip
  • Advanced Member
  • 250 posts
  • LocationDuluth, Mn

Posted 08 September 2006 - 04:50 PM

how can i add zeroes infront of a number. well... here are some examples of what i want to accomplish...

6 becomes 0000006
534 becomes 0000534
65487 becomes 0065487

so zeroes will be added to make the number always 7 characters long.

thx
All your base are belong to us.

#2 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 08 September 2006 - 04:50 PM

str_pad()

#3 fooDigi

fooDigi
  • Members
  • PipPipPip
  • Advanced Member
  • 250 posts
  • LocationDuluth, Mn

Posted 08 September 2006 - 04:54 PM

thx
problem solved
All your base are belong to us.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users