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.