Menu Home

getprotobynumber

osbo.com | PHP | Functions | getprotobynumber

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

PHP