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

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

PHP getprotobynumber() Function Usage and Examples

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 get 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 protocol numbers

PHP HTTP Reference Manual