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
<? $hostname = 'php.net'; $return = gethostbynamel($hostname); print_r($return); ?>
Array ( [0] => 185.85.0.29 )