previousNet_IPv4::htoa() (Previous) (Next) Net_IPv4::validateIP()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_IPv4::ip2double()

Net_IPv4::ip2double() – IP アドレスを PHP の倍精度数に変換する

Synopsis

require_once 'Net/IPv4.php';

float ip2double ( string $ip_addr )

Description

IP アドレスを PHP の倍精度数に変換します。 たとえば、"192.168.1.0" は "3232235776" に変換されます。 倍精度数は、PHP の long2ip() 関数から返される整数と対照的に符号がないため、 ユーザーに表示する場合はより違和感がないでしょう。

Note

This function can be called statically.

previousNet_IPv4::htoa() (Previous) (Next) Net_IPv4::validateIP()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.