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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/171165-formatting-numbers/#findComment-902609 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.