php formating numbers -


I would like to format the numbers, so the format of such numbers:

  1 = 1 10 = 10 100 = 100 1000 = 1000 10000 = 10,000 100000 = 100,000 1000000 = 1,000,000   

I think it can be done with number_format (), but right now I have a The problem is, if the number is 35679 then it shows 35,679,000

If you want to show 35679 as 35,679:

  number-format (35679,0, '', ','); The first parameter is the input number. 
is the quantity of second decimal. The third is the decimal separator (not required without decimals).
Last thousand separators.

(You can probably set the decimal number to 3)

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -