src/classes/CCStr.php
public static function bytes( $size, $round = 2 ) 
	{
		$unit = array( 'b', 'kb', 'mb', 'gb', 'tb', 'pb' );
		return @round( $size / pow( 1024, ( $i = floor( log( $size, 1024 ) ) ) ), $round ).$unit[$i];
	}
public static function bytes( $size, $round = 2 ) 
	{
		$unit = array( 'b', 'kb', 'mb', 'gb', 'tb', 'pb' );
		return @round( $size / pow( 1024, ( $i = floor( log( $size, 1024 ) ) ) ), $round ).$unit[$i];
	}
public static function bytes ( $ size , $ round = 2 ) { $ unit = array ( 'b' , 'kb' , 'mb' , 'gb' , 'tb' , 'pb' ) ; return @ round ( $ size / pow ( 1024 , ( $ i = floor ( log ( $ size , 1024 ) ) ) ) , $ round ) . $ unit [ $ i ] ; }
Convert bytes to a human readable format

CCStr::bytes( 39247293 ); // 37.43mb

@param int 		$size
@return string
Convert bytes to a human readable format