A gethostbynamel() example:
<?php
$hostlist = gethostbynamel("www.91xjr.com");
print_r($hostlist);
?>
The gethostbynamel() function returns a list of IPv4 address for a given domain/host name.
gethostbynamel(
hostname)
Parameter | Description |
---|---|
hostname | Required. Specifies a hostname (like "www.91xjr.com") |
Return Value: | An array of IPv4 address on success. FALSE on failure. |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!