PEAR Manual
Prev |  | Next

# Net_IPv4::htoa()

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

## Synopsis

    require_once 'Net/IPv4.php';

``mixed htoa` (string $addr)`

## Description

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

## Note

This function can be called statically.

Prev | Home | Next
Net_IPv4::atoh() | Up | Net_IPv4::ip2double()