Want to format number in php like 1,00,00,00,000
. I am trying the following function
number_format($var['count'])
but it is giving me following answer 1,000,000,000
Thanks and Regards
You can try this, to do additional formatting read through PHP's
documentation: PHP.NET - Money Format
$dollar = 6000000000;
setlocale(LC_MONETARY, 'en_IN');
echo $dollar = money_format('%!i', $dollar);
Output:
6,00,00,00,000.00
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With