How do i abbreviate using K for thousand M for million and B for billion ?

alt=
duke
@musamensa
7 years ago
253 posts
i am trying to a abbreviate a variable so that it displays a letter after each 'milestone' > 1,000 =k >999,999 = m and b for billion respectively, is there a function already built in that i can use ?
updated by @musamensa: 12/25/17 06:14:59PM
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
There is a function here:
http://php.net/manual/en/function.number-format.php#89888


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags