Net_IPv6::compress()

Net_IPv6::compress() -- compress an IPv6 address

Synopsis

require_once 'Net/IPv6.php';

string Net_IPv6::compress (string $ip)

Описание

Compresses an IPv6 address. RFC 2373 allows you to compress zeros in an address to '::'. This function expects an valid IPv6 address and compresses successive zeros to '::'
FF01:0:0:0:0:0:0:101 -> FF01::101
      0:0:0:0:0:0:0:1      -> ::1

Параметр

Возвращаемое значение

string - the compressed IP is an IPv6 address

Заметка

Эта функция может быть вызвана статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ