previousNet_IPv6::checkIPv6() (Previous) (Next) Net_IPv6::uncompress()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Net_IPv6::compress()

Net_IPv6::compress() – IPv6 アドレスの圧縮

Synopsis

require_once 'Net/IPv6.php';

string Net_IPv6::compress ( string $ip )

Description

IPv6 アドレスを圧縮します。 RFC 2373 では、アドレス内のゼロを '::' に圧縮することを許可しています。 この関数は有効な IPv6アドレスを期待しており、 圧縮可能なゼロを '::' に圧縮します。

FF01:0:0:0:0:0:0:101 -> FF01::101
      0:0:0:0:0:0:0:1      -> ::1

Parameter

  • string $ip - 圧縮する IP アドレスを指定します。

Return value

string - 圧縮された IPv6 アドレス

Note

This function can be called statically.

previousNet_IPv6::checkIPv6() (Previous) (Next) Net_IPv6::uncompress()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.