function fHcountHits($num){ if ($num) { $num = str_replace(',', '', $num); $prefix = array(0 => '', 1 => 'K', 2 => 'M', 3 => 'G', 4 => 'T'); $pk = floor((1/3)*log($num, 10)); $num = round(($num/pow(10, 3*$pk)), 1) . $prefix[$pk]; } return $num;}