返回机器名称。
语法: string gethostbyaddr(string ip_address);
返回值: 字符串
函数种类: 网络系统
本函数可返回某个 IP 网址的机器名称 (Domain Name)。若执行失败,则返回原来的 IP 网址。
下例的返回值为 dns.biglobe.net.tw<?echo gethostbyaddr("202.166.255.97");?>
gethostbyname()
PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序