Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 62222 программиста и 3305 роботов. Сейчас ищет 2031 программист ...

Net_IPv4::ip2double()

Вернуться к: Net_IPv4

Net_IPv4::ip2double()

Net_IPv4::ip2double() – Converts an IP address to a PHP double.

Synopsis

require_once 'Net/IPv4.php';

float ip2double ( string $ip_addr )

Converts an IP address to a PHP double - for example "192.168.1.0" to "3232235776". A double is, in contrast to ip2long's integer, not signed and may be more comfortable when presented to the user. It can still be reconverted with PHP's long2ip().

Note

This function can be called statically.



Вернуться к: Net_IPv4

© 2026 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты
Разработка компании ODWR