getprotobynumber

(PHP 4, PHP 5, PHP 7, PHP 8)

getprotobynumberGet protocol name associated with protocol number

Descrição

getprotobynumber(int$protocol): string|false

getprotobynumber() returns the protocol name associated with protocol protocol as per /etc/protocols.

Parâmetros

protocol

The protocol number.

Valor Retornado

Returns the protocol name as a string, ou false em caso de falha.

Veja Também

To Top