Manuel Pear

Net_IPv4::atoh()

Net_IPv4::atoh() -- Converts a dot-quad formatted IP address into a hexadecimal string

Synopsis

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

mixed atoh (string $addr)

Description

Converts a dot-quad formatted IP address into a hexadecimal string - for example "192.168.1.0" to "c0a80100". Returns FALSE if the string given is no valid IP adress.

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