Menu Home

gethostbynamel

osbo.com | PHP | Functions | gethostbynamel

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

Syntax

gethostbynamel ( string $hostname ) : array

Parameters

hostname

The host name.

Return

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

Examples

Array
(
    [0] => 185.85.0.29
)

PHP