SimplePie_Net_IPv6::uncompress

SummerySummery

Uncompresses an IPv6 address

Syntax

SimplePie_Net_IPv6::uncompress( string $ip )

DescriptionDescription

RFC 4291 allows you to compress concecutive 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

ParametersParameters

$ip

(string) (Required) An IPv6 address

ReturnReturn

(string) The uncompressed IPv6 address

SourceSource

File: wp-includes/SimplePie/Net/IPv6.php


			
Scroll to Top