PHP Manual

PHP function inet_pton()

2019-09-11T08:04:03.000Z

Obsah článku

Availability in versions: PHP 5.1.0

Converts a human readable IP address to its packed in_addr representation

Parameters

Parameter Data type Default value Note
$address string not A human readable IPv4 or IPv6 address.

Return values

string

the in_addr representation of the given
address

Other resources

Official inet-pton documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
214.

V jiných jazycích

Status:
All systems normal.
2025