original_string: public static function IPv6Bin2Hex($bin) {
  			// use PHP-function if PHP was compiled with IPv6-support
  		if (defined('AF_INET6')) {
  			$hex = inet_ntop($bin);
  		} else {
  			$hex = unpack("H*" , $bin);
  			$hex = chunk_split($hex[1], 4, ':');
  				// strip last colon (from chunk_split)
  			$hex = substr($hex, 0, -1);
  				// IPv6 is now in normalized form
  				// compress it for easier handling and to match result from inet_ntop()
  			$hex = self::compressIPv6($hex);
  		}
  		return $hex;
  
  	}
code: public static function IPv6Bin2Hex($bin) {
  			// use PHP-function if PHP was compiled with IPv6-support
  		if (defined('AF_INET6')) {
  			$hex = inet_ntop($bin);
  		} else {
  			$hex = unpack("H*" , $bin);
  			$hex = chunk_split($hex[1], 4, ':');
  				// strip last colon (from chunk_split)
  			$hex = substr($hex, 0, -1);
  				// IPv6 is now in normalized form
  				// compress it for easier handling and to match result from inet_ntop()
  			$hex = self::compressIPv6($hex);
  		}
  		return $hex;
  
  	}
code_tokens: public static function IPv6Bin2Hex ( $ bin ) { // use PHP-function if PHP was compiled with IPv6-support if ( defined ( 'AF_INET6' ) ) { $ hex = inet_ntop ( $ bin ) ; } else { $ hex = unpack ( "H*" , $ bin ) ; $ hex = chunk_split ( $ hex [ 1 ] , 4 , ':' ) ; // strip last colon (from chunk_split) $ hex = substr ( $ hex , 0 , - 1 ) ; // IPv6 is now in normalized form // compress it for easier handling and to match result from inet_ntop() $ hex = self :: compressIPv6 ( $ hex ) ; } return $ hex ; }
docstring: Transform an IPv6 address from binary to hex-representation
  
  @param string $bin IPv6 address in hex-presentation
  @return string Binary representation (16 characters, 128 characters)
  @see IPv6Hex2Bin()
docstring_tokens: Transform an IPv6 address from binary to hex - representation