Aureole Posted January 31, 2008 Share Posted January 31, 2008 Let's say I have a field in a database and it stores a number e.g. "1056385". Now if you look at that number, it's not very pleasing to the eye... however when you format it, it becomes: 1,056,385 which is much better. Is there a built-in function that can do this, or am I going to have to try and write one myself? Quote Link to comment https://forums.phpfreaks.com/topic/88720-solved-number-formatting/ Share on other sites More sharing options...
laffin Posted January 31, 2008 Share Posted January 31, 2008 number_format]http://us2.php.net/number_format]number_format Quote Link to comment https://forums.phpfreaks.com/topic/88720-solved-number-formatting/#findComment-454345 Share on other sites More sharing options...
Aureole Posted January 31, 2008 Author Share Posted January 31, 2008 Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/88720-solved-number-formatting/#findComment-454364 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.