mil & thousand Seperation of numbers
Posted on 2002-03-06
Can anyone offer the easiest way to seperate numbers by tousand, millions, etc.
I have a variable which is called $money
e.g. The variable takes the values: 10000 or 250000 or 4500332.
now the values should be changed to: 10 000 or 250 000 or 4 500 332
(thousand steps seperated with spaces)
I need a fast and easy solution for a variable which can be any number from 100 to 10000000
(unknown number of digits).
Thanks in advance