getprotobynumber()
getprotobynumber - Get protocol name associated with protocol number
Syntax
string getprotobynumber (
int $number)
Arguments
- number - The protocol number.
Description
getprotobynumber() returns the protocol name associated with protocol number as per /etc/protocols.
Version
PHP 4, 5
Return value
Returns the protocol name as a string.