Manuel Pear

Net_IPv6::splitV64()

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

Synopsis

  1. <?php
  2. require_once 'Net/IPv6.php
  3. ?> 

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

Paramètres

  • string $ip - the IP address to split

Valeur retournée

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

Note

Cette fonction peut être appelée de façon statique.


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique