Net_IPv6::splitV64()

Net_IPv6::splitV64() – splits an IPv6 address in it IPv6 and IPv4 part

Synopsis

require_once 'Net/IPv6.php';

array Net_IPv6::splitV64 ( string $ip )

Description

Splits an IPv6 address into the IPv6 and a possible IPv4-formated part. RFC 2373 allows you to note the last two parts of an IPv6 address in the IPv4 address format:

0:0:0:0:0:0:13.1.68.3
0:0:0:0:0:FFFF:129.144.52.38

Parameter

  • string $ip - the IP address to split

Return value

array - key [0] contains the IPv6 part, key [1] the IPv4 formated part

Note

This function can be called statically.

Tests for a prefix length specification in the address and removes the prefix length, if exists. (Previous) Net_LDAP (Next)
Last updated: Fri, 31 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.