Uncompress() public méthode

RFC 2373 allows you to compress zeros in an address to '::'. This function expects an valid IPv6 address and expands the '::' to the required zeros. Example: FF01::101 -> FF01:0:0:0:0:0:0:101 ::1 -> 0:0:0:0:0:0:0:1
public Uncompress ( string $ip ) : string
$ip string a valid IPv6-address (hex format)
Résultat string the uncompressed IPv6-address (hex format)
 public static function SplitV64($ip)
 {
     $ip = SimplePie_Net_IPv6::Uncompress($ip);
     if (strstr($ip, '.')) {
         $pos = strrpos($ip, ':');
         $ip[$pos] = '_';
         $ipPart = explode('_', $ip);
         return $ipPart;
     } else {
         return array($ip, '');
     }
 }