Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

php locale aware number format using -'php,internationalization'

php locale aware number format  using -'php,internationalization'

I want to format the number 3253454 for my website visitors.

If I use the inbuilt number_format function, I get: 3,253,454 which is great for UK and USA, however most other countries use 3.253.454

I have many international visitors.

Can anyone give me a pointer to the best practice here?

Ideally I wish to get the browser's locale and format the number accordingly. Is this even possible in PHP?

asked Sep 8, 2015 by rajesh
0 votes

Related Hot Questions

Government Jobs Opening