PHP Manual

PHP function gethostbyname()

2019-09-11T08:04:04.000Z

Obsah článku

Availability in PHP 4.0

Get the IPv4 address corresponding to a given Internet host name

Parameters

Parameter Data type Default value Note
$hostname string not The host name.

Return values

string

the IPv4 address or a string containing the unmodified
hostname on failure.

Additional resources

Official gethostbyname 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.
353.

V jiných jazycích

Status:
All systems normal.
2025