final static public function sizeTextToBytes (int $size=0, string $unit="") : int
	{
		$units = ['B' => 0, 'KB' => 1, 'MB' => 2, 'GB' => 3, 'TB' => 4, 'PB' => 5, 'EB' => 6, 'ZB' => 7, 'YB' => 8 ];
		return $size * pow(1024, $units[strtoupper($unit)]);
	}
final static public function sizeTextToBytes (int $size=0, string $unit="") : int
	{
		$units = ['B' => 0, 'KB' => 1, 'MB' => 2, 'GB' => 3, 'TB' => 4, 'PB' => 5, 'EB' => 6, 'ZB' => 7, 'YB' => 8 ];
		return $size * pow(1024, $units[strtoupper($unit)]);
	}
final static public function sizeTextToBytes ( int $ size = 0 , string $ unit = "" ) : int { $ units = [ 'B' => 0 , 'KB' => 1 , 'MB' => 2 , 'GB' => 3 , 'TB' => 4 , 'PB' => 5 , 'EB' => 6 , 'ZB' => 7 , 'YB' => 8 ] ; return $ size * pow ( 1024 , $ units [ strtoupper ( $ unit ) ] ) ; }
Converts size text to bytes.
@param int $size
@param string $unit
@return int
Converts size text to bytes .