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

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP getprotobyname() function usage and example

PHP HTTP  Reference Manual

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

Syntax

int getprotobyname ( string $name )

Definition and usage

Used to get the protocol number associated with the protocol name

Return value

Returns the protocol number, returns FALSE on failure.

Parameter

Serial numberParameters and descriptions
1

name

It contains the protocol name

PHP HTTP  Reference Manual