PHP - getservbyport 函式



語法

string getservbyport ( int $port , string $protocol )

定義和用法

用於獲取與埠號對應的網際網路服務。

返回值

返回網際網路伺服器名稱(字串),失敗則返回false。

引數

序號 引數及描述
1

port

埠號。

2

protocol

協議資訊。

php_function_reference.htm
廣告