I have a question about formatting the Rupee currency (Indian Rupee - INR).
For example, numbers here are represented as:
1
10
100
1,000
10,000
1,00,000
10,00,000
1,00,00,000
10,00,00,000
Refer Indian Numbering System
I have to do with it PHP.
I have saw this question Displaying Currency in Indian Numbering Format. But couldn't able to get it for PHP my problem.
Update:
How to use money_format() in indian currency format?
When money_format is not available :
Check this code its work 100% for indian Rs format with decimal setting u can use
123456.789 123.456 123.4 123 and 1,2,3,4,5,6,7,8,9,.222
You have so many options but
money_format
can do the trick for you.Example:
Output:
Note:
Pure PHP Implementation - Works on any system:
So if I'm reading that right, the Indian Numbering System separates the thousands, then every power of a hundred past that? Hmm...
Perhaps something like this?
Simply use below function to format in INR.