function fHcountHits($num){ $new_value = str_replace( ",", "", $num ); if ( $new_value > 1000000000 ) { $new_value = round( $new_value/1000000000, 1 ) . 'G'; } else if ( $new_value > 1000000 ) { $new_value = round( $new_value/1000000, 1 ) . 'M'; } else if ( $new_value > 1000 ) { $new_value = round( $new_value/1000, 1 ) . 'K'; } return $new_value; }