Answers for "format money with commas in php"

PHP
0

format money with commas in php

<?php
function CurrencyFormat($number)
{
   $decimalplaces = 2;
   $decimalcharacter = '.';
   $thousandseparater = ',';
   return number_format($number,$decimalplaces,$decimalcharacter,$thousandseparater);
}
?>
Posted by: Guest on December-04-2020

Browse Popular Code Answers by Language