04-12-2015, 03:13 PMFstyle Wrote: sorry, I want to ask how the letter "k" after 3.8k
$numbers = array(1000,2000);function format_number($number) { if($number >= 1000) { return $number/1000 . "k"; } else { return $number; }}foreach($numbers as $number) { echo format_number($number); echo "<br>";}?>
Loading Info...