|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Putting commas into a string
Ok im making a site, on the site you have virtual money... I store everything in the database so instead of having $2,500 I have $2500, I want to be able to add the commas in on the page because I can't store it in the database with commas! Hopefully this makes sense and someone can help me
|
|
#2
|
|||
|
|||
|
PhreakShow64,
Use the function number_format(). http://www.php.net/manual/en/function.number-format.php |
|
#3
|
|||
|
|||
|
Thanx, i was searching php.net but i couldnt find it
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Putting commas into a string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|