Menu Samaritan's Purse

INET_PTON

Converts a human readable IP address to its packed in_addr representation

SYNTAX

inet_pton ( string $address ) : string

PARAMETERS

address

A human readable IPv4 or IPv6 address.

RETURN

Returns the in_addr representation of the given address, or FALSE if a syntactically invalid address is given (for example, an IPv4 address without dots or an IPv6 address without colons).

EXAMPLES

1

packed:
packed:

PHP