getservbyport

Example

 string getservbyport ( int $port , string $protocol ) 

Description

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

Return Values

Returns the Internet service name as a string.