Class SimplePie_Net_IPv6
Class to validate and to work with IPv6 addresses.
Copyright: 2003-2005 The PHP Group
License: http://www.opensource.org/licenses/bsd-license.php
Author: Alexander Merz <alexander.merz@web.de>
Author: elfrink at introweb dot nl
Author: Josh Peck <jmp at joshpeck dot org>
Author: Geoffrey Sneddon <geoffers@gmail.com>
Link: http://pear.php.net/package/Net_IPv6
Located at SimplePie/Net/IPv6.php
public static
string
|
#
uncompress( string $ip )
Uncompresses an IPv6 address 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 Parameters
Returnsstring The uncompressed IPv6 address Copyright
2003-2005 The PHP Group
LicenseAuthor
Alexander Merz <alexander.merz@web.de>
elfrink at introweb dot nl Josh Peck <jmp at joshpeck dot org> |
public static
string
|
#
compress( string $ip )
Compresses an IPv6 address RFC 4291 allows you to compress concecutive zero pieces in an address to '::'. This method expects a valid IPv6 address and compresses consecutive zero pieces to '::'. Example: FF01:0:0:0:0:0:0:101 -> FF01::101 0:0:0:0:0:0:0:1 -> ::1 Parameters
Returnsstring The compressed IPv6 address See |
public static
boolean
|
#
check_ipv6( string $ip )
Checks an IPv6 address Checks if the given IP is a valid IPv6 address Parameters
Returnsboolean true if $ip is a valid IPv6 address |
public static
boolean
|
#
checkIPv6( string $ip )
Checks if the given IP is a valid IPv6 address Deprecated
Use
SimplePie_Net_IPv6::check_ipv6() insteadParameters
Returnsboolean true if $ip is a valid IPv6 address SeeCodeCoverageIgnore |