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

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -