Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function nFormat($int) {
- if ($int > 1000 && $int < 1000000) $int = round(number_format($int, 0, "", "."), 1)."k";
- elseif ($int >= 1000000) $int = round(number_format($int, 0, "", "."), 1)."m";
- return $int;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement