Class to validate and to work with IPv6 addresses.
More...
Class to validate and to work with IPv6 addresses.
@subpackage HTTP
- Copyright
- 2003-2005 The PHP Group
- License
- http://www.opensource.org/licenses/bsd-license.php @externalurl http://pear.php.net/package/Net_IPv6
- Author
- Alexander Merz alexa.nosp@m.nder.nosp@m..merz.nosp@m.@web.nosp@m..de
-
elfrink at introweb dot nl
-
Josh Peck <jmp at joshpeck dot org>
-
Sam Sneddon geoff.nosp@m.ers@.nosp@m.gmail.nosp@m..com
◆ check_ipv6()
static IPv6::check_ipv6 |
( |
| $ip | ) |
|
|
static |
Checks an IPv6 address.
Checks if the given IP is a valid IPv6 address
- Parameters
-
- Return values
-
bool | true if $ip is a valid IPv6 address |
◆ checkIPv6()
static IPv6::checkIPv6 |
( |
| $ip | ) |
|
|
static |
◆ compress()
static IPv6::compress |
( |
| $ip | ) |
|
|
static |
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
- See also
- uncompress()
- Parameters
-
- Return values
-
string | The compressed IPv6 address |
◆ uncompress()
static IPv6::uncompress |
( |
| $ip | ) |
|
|
static |
The documentation for this class was generated from the following file:
- lib/simplepie/src/Net/IPv6.php