Lakh和Crore的PHP格式

Rah*_*ngh 2 php codeigniter number-formatting

想在php中格式化数字1,00,00,00,000.我正在尝试以下功能, number_format($var['count']) 但它给了我以下答案1,000,000,000

感谢致敬

and*_*wap 6

你可以试试这个,做另外的格式化阅读PHP's文档:PHP.NET - Money Format

$dollar = 6000000000;
setlocale(LC_MONETARY, 'en_IN');
echo $dollar = money_format('%!i', $dollar);
Run Code Online (Sandbox Code Playgroud)

输出: 6,00,00,00,000.00