Large Number Abbreviator

Shorten Long/Large Numbers using PHP

Submitted by Jeprox on
Good Day. In this project we are going learn how to shorten long numbers to K/ M/ B/ T/q/Q/s/S/O/N/d. This function abbreviates a large number it display numbers like 3.5K and 4.2M. thousandsCurrencyFormat(1000) - 1k (One Thousand) thousandsCurrencyFormat(1000000) - 1M (One Million) thousandsCurrencyFormat(1000000000) - 1B (One Billion) thousandsCurrencyFormat(1000000000000) - 1T (One Trillion)