This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Numbers more readable for humans | |
* | |
* It intends to change numbers as 1000 as 1K or 1200000 as 1.2M | |
* | |
* This code is heavly base in this one: https://gist.github.com/RadGH/84edff0cc81e6326029c | |
* | |
* How to use \NumberFormat::readable(1000); | |
*/ |