English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP basic tutorial

PHP advanced tutorial

PHP & MySQL

PHP reference manual

Usage and examples of PHP getprotobynumber() function

PHP HTTP  reference manual

The getprotobynumber() function retrieves the protocol name associated with the protocol number.

Syntax

string getprotobynumber ( int $number )

Definition and usage

Used to obtain the protocol name associated with the protocol number

Return value

Returns the protocol name as a string, or FALSE on failure.

Parameter

Serial numberParameters and descriptions
1

number

It contains the protocol number

PHP HTTP  reference manual