public static function IPv6Hex2Bin($hex) {
			// use PHP-function if PHP was compiled with IPv6-support
		if (defined('AF_INET6')) {
			$bin = inet_pton($hex);
		} else {
			$hex = self::normalizeIPv6($hex);
			$hex = str_replace(':', '', $hex); // Replace colon to nothing
			$bin = pack("H*" , $hex);
		}
		return $bin;
	}
public static function IPv6Hex2Bin($hex) {
			// use PHP-function if PHP was compiled with IPv6-support
		if (defined('AF_INET6')) {
			$bin = inet_pton($hex);
		} else {
			$hex = self::normalizeIPv6($hex);
			$hex = str_replace(':', '', $hex); // Replace colon to nothing
			$bin = pack("H*" , $hex);
		}
		return $bin;
	}
public static function IPv6Hex2Bin ( $ hex ) { // use PHP-function if PHP was compiled with IPv6-support if ( defined ( 'AF_INET6' ) ) { $ bin = inet_pton ( $ hex ) ; } else { $ hex = self :: normalizeIPv6 ( $ hex ) ; $ hex = str_replace ( ':' , '' , $ hex ) ; // Replace colon to nothing $ bin = pack ( "H*" , $ hex ) ; } return $ bin ; }
Transform a regular IPv6 address from hex-representation into binary

@param string $hex IPv6 address in hex-presentation
@return string Binary representation (16 characters, 128 characters)
@see IPv6Bin2Hex()
Transform a regular IPv6 address from hex - representation into binary