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? 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 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. Link to comment https://forums.phpfreaks.com/topic/88720-solved-number-formatting/#findComment-454364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.