public static function formatSocialNumber($number){

		assert('is_integer($number)');

		if(!is_integer($number)) return $number;

		if($number > 10000000){

			$number = round($number / 1000000) . 'M';
		}
		elseif($number > 1000000){

			$number = round($number / 1000000, 1) . 'M';
		}
		elseif($number > 10000){

			$number = round($number / 1000) . 'K';
		}
		elseif($number > 1000){

			$number = round($number / 1000, 1) . 'K';
		}

		return $number;
	}
public static function formatSocialNumber($number){

		assert('is_integer($number)');

		if(!is_integer($number)) return $number;

		if($number > 10000000){

			$number = round($number / 1000000) . 'M';
		}
		elseif($number > 1000000){

			$number = round($number / 1000000, 1) . 'M';
		}
		elseif($number > 10000){

			$number = round($number / 1000) . 'K';
		}
		elseif($number > 1000){

			$number = round($number / 1000, 1) . 'K';
		}

		return $number;
	}
public static function formatSocialNumber ( $ number ) { assert ( 'is_integer($number)' ) ; if ( ! is_integer ( $ number ) ) return $ number ; if ( $ number > 10000000 ) { $ number = round ( $ number / 1000000 ) . 'M' ; } elseif ( $ number > 1000000 ) { $ number = round ( $ number / 1000000 , 1 ) . 'M' ; } elseif ( $ number > 10000 ) { $ number = round ( $ number / 1000 ) . 'K' ; } elseif ( $ number > 1000 ) { $ number = round ( $ number / 1000 , 1 ) . 'K' ; } return $ number ; }
Formats the numer to populate 1, 10, 100, 1.1K, 10K, 1.1M, 10M

@param integer $number
@return string
Formats the numer to populate 1 10 100 1 . 1K 10K 1 . 1M 10M