php - Format column number to currency -


i'm pulling number mysql database column , i want format number currency. instance, column value '85000000' , want formatted '$85,000,000'.

i've tried few methods can't seem work. help.

<?php  $value = 85000000;  echo "$".number_format($value, 2, '.', ',');  ?> 

if don't want decimal places, change 2 0.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -