getservbyport

 string getservbyport ( int $port , string $protocol ) 

説明

getservbyport() returns the Internet service associated with port for the specified protocol as per /etc/services.

戻り値

Returns the Internet service name as a string.