Home > PHP > Function > Network > gethostbynamel()

gethostbynamel()

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

Syntax

array gethostbynamel (string $hostname)

Arguments

  • hostname - The host name.

Description

Returns a list of IPv4 addresses to which the Internet host specified by hostname resolves.

Version

PHP 4, 5

Return value

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