PHP.nl

getservbyport

getservbyport

Get Internet service which corresponds to port and protocol

 **getservbyport** int $port string $protocol
returns the Internet service

associated with for the specified as per . getservbyport``port``protocol

portThe port number.

protocol is either or (in lowercase). protocol``"tcp"``"udp"

Returns the Internet service name as a string, return.falseforfailure.

getservbyname