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
$ip
stringrequired- An IPv6 address
User Contributed Notes
You must log in before being able to contribute a note or feedback.