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