¡@

Home 

php Programming Glossary: n_format

Shorten long numbers to K/M/B?

http://stackoverflow.com/questions/4371059/shorten-long-numbers-to-k-m-b

number_format if n 1000000 Anything less than a million n_format number_format n else if n 1000000000 Anything less than a billion.. n else if n 1000000000 Anything less than a billion n_format number_format n 1000000 3 . 'M' else At least a billion n_format.. number_format n 1000000 3 . 'M' else At least a billion n_format number_format n 1000000000 3 . 'B' I would totally appreciate..