Jump to content


Photo

CHanging Numbers


  • Please log in to reply
1 reply to this topic

#1 kasc

kasc
  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 19 March 2006 - 01:24 PM

How do I something that would do this:

100000> Funtion >100,000
58967456546> Funtion >58,967,456,546


#2 Petsmacker

Petsmacker
  • Members
  • PipPipPip
  • Advanced Member
  • 71 posts

Posted 19 March 2006 - 01:39 PM

number_format(555555);

Outputs: 555,555


You'd say something like

echo number_format(100000);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users