Requests_IPv6::uncompress( string $ip ): string

In this article

Uncompresses an IPv6 address

Description

RFC 4291 allows you to compress consecutive zero pieces in an address to ‘::’. This method expects a valid IPv6 address and expands the ‘::’ to the required number of zero pieces.

Example: FF01::101 -> FF01:0:0:0:0:0:0:101 ::1 -> 0:0:0:0:0:0:0:1

Parameters

$ipstringrequired
An IPv6 address

Return

string The uncompressed IPv6 address

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.