getservbyport()
getservbyport - Get Internet service which corresponds to port and protocol
Syntax
string getservbyport ()
Arguments
-
Description
getservbyport() returns the Internet service associated with port for the specified protocol as per /etc/services.
Version
PHP 4, 5
Return value
Returns the Internet service name as a string.