Manuel Pear

Net_IPv4::ip2double()

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

Synopsis

  1. <?php
  2. require_once 'Net/IPv4.php
  3. ?> 

float ip2double (string $ip_addr)

Description

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

Cette fonction peut être appelée de façon statique.


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique