How to combine large numbers in php.
NOTE. I tried the round function and cannot make it work as I need
eg:
Say I have 4 listings in a database and they have 4 different prices.
1st Price = 5,783
2nd Price = 19,647
3rd Price = 12,867
4th Price = 23,647
Now we determine that the lowest price in the databases will be 5,783
and the highest price is 23.647 .
now what i want to do is round the lowest price to say the nearest 500 or 1000 or even 5000
approximate example 1000
lowest price 5,783 rounded = 5,000
23,647 = 24000