getprotobyname

(PHP 4 >= 4.0b4)

getprotobyname --  Get protocol number associated with protocol name

Description

int getprotobyname (string name)

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

See also: getprotobynumber().