protected static function _bin($hex)
	{
		$bin = '';
		$length = strlen($hex);
		for ($i = 0; $i < $length; $i += 2)
		{
			$tmp = sscanf(substr($hex, $i, 2), '%x');
			$bin .= chr(array_shift($tmp));
		}
		return $bin;
	}
protected static function _bin($hex)
	{
		$bin = '';
		$length = strlen($hex);
		for ($i = 0; $i < $length; $i += 2)
		{
			$tmp = sscanf(substr($hex, $i, 2), '%x');
			$bin .= chr(array_shift($tmp));
		}
		return $bin;
	}
protected static function _bin ( $ hex ) { $ bin = '' ; $ length = strlen ( $ hex ) ; for ( $ i = 0 ; $ i < $ length ; $ i += 2 ) { $ tmp = sscanf ( substr ( $ hex , $ i , 2 ) , '%x' ) ; $ bin .= chr ( array_shift ( $ tmp ) ) ; } return $ bin ; }
Converts hexadecimal string to binary data.

@param   string  $hex  Hex data.
@return  string  Binary data.
Converts hexadecimal string to binary data .