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 getprotobyname() function

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 obtain 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