Answers for "format number php comma"

PHP
1

php number format 2 decimal no comma

number_format(1000.5, 2, '.', '');
Posted by: Guest on June-10-2021
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

Code answers related to "format number php comma"

Browse Popular Code Answers by Language