How to show a number in currency format in php?
To show numbers in currency format we can use the money_format function in PHP like this.$number = 1000000; setlocale(LC_MONETARY, 'en_IN'); $price = money_format('%!.0n', $number); echo $price;Output : 10,00,000
post a comment