php man page for gethostbynamel

Query: gethostbynamel

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETHOSTBYNAMEL(3)							 1							 GETHOSTBYNAMEL(3)

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

SYNOPSIS
array gethostbynamel (string $hostname)
DESCRIPTION
Returns a list of IPv4 addresses to which the Internet host specified by $hostname resolves.
PARAMETERS
o $hostname - The host name.
RETURN VALUES
Returns an array of IPv4 addresses or FALSE if $hostname could not be resolved.
EXAMPLES
Example #1 gethostbynamel(3) example <?php $hosts = gethostbynamel('www.example.com'); print_r($hosts); ?> The above example will output: Array ( [0] => 192.0.34.166 )
SEE ALSO
gethostbyname(3), gethostbyaddr(3), checkdnsrr(3), getmxrr(3), the named(8) manual page. PHP Documentation Group GETHOSTBYNAMEL(3)
Related Man Pages
ip2long(3) - php
geoip_country_code3_by_name(3) - php
getmxrr(3) - php
geoip_country_code_by_name(3) - php
app::clusterssh::host(3pm) - debian
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!