mbh23 Posted August 20, 2009 Share Posted August 20, 2009 I am pulling data from a mysql database and I want to know the syntax for adding comma's. For example 100000 would be 100,000. Also how to choose how many decimals the number rounds to. Link to comment https://forums.phpfreaks.com/topic/171165-formatting-numbers/ Share on other sites More sharing options...
TeNDoLLA Posted August 20, 2009 Share Posted August 20, 2009 http://fi.php.net/manual/en/function.number-format.php Link to comment https://forums.phpfreaks.com/topic/171165-formatting-numbers/#findComment-902609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.