gethostbynamel
Get the IPv4 address list corresponding to the Internet hostname
gethostbynamel()
function returns a list of IPv4 addresses for the given domain/hostname.
gethostbynamel()
example:
<?php $hostlist = gethostbynamel ( "www.gitbox.net" ) ; print_r ( $hostlist ) ; ?>
gethostbynamel ( hostname )
parameter | describe |
---|---|
hostname | Required. Specify the host name (such as "http://www.gitbox.net"). |