PHP function gethostbynamel()

Availability in PHP 4.0

Get a list of IPv4 addresses corresponding to a given Internet host

Parameters

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

Return values

array

an array of IPv4 addresses or false if hostname could not be resolved.

Additional resources

Official gethostbynamel documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.