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
Post a Comment