public static function serializeIPv6($address)
    {
        $output = inet_ntop(call_user_func_array('pack', array_merge(['n*'], $address)));
        return strpos($output, '.') !== false
            ? '::ffff:' . strtolower(dechex($address[6]) . ':' . dechex($address[7]))
            : $output;
    }
public static function serializeIPv6($address)
    {
        $output = inet_ntop(call_user_func_array('pack', array_merge(['n*'], $address)));
        return strpos($output, '.') !== false
            ? '::ffff:' . strtolower(dechex($address[6]) . ':' . dechex($address[7]))
            : $output;
    }
public static function serializeIPv6 ( $ address ) { $ output = inet_ntop ( call_user_func_array ( 'pack' , array_merge ( [ 'n*' ] , $ address ) ) ) ; return strpos ( $ output , '.' ) !== false ? '::ffff:' . strtolower ( dechex ( $ address [ 6 ] ) . ':' . dechex ( $ address [ 7 ] ) ) : $ output ; }
The IPv6 serializer.
@link https://url.spec.whatwg.org/#concept-ipv6-serializer URL Standard
@param int[] $address An array of a 16-bit unsigned integer.
@return string
The IPv6 serializer .