Get protocol name associated with protocol number
Syntax
getprotobynumber ( int $number ) : string
Parameters
number
The protocol number.
Return
Returns the protocol name as a string, or FALSE on failure.
Examples
<? $number = 6; $return = getprotobynumber($number); echo $return; ?>
tcp