English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
getservbyport()函数获取与端口和协议相对应的Internet服务。
string getservbyport ( int $port , string $protocol )
用于获取与端口号相对应的Internet服务
以字符串形式返回Internet服务名称。失败时返回false。
序号 | 参数和说明 |
---|---|
1 | port 端口号 |
2 | protocol 协议是“ tcp”或“ udp”(小写)。 |