getprotobynumber

Get protocol name associated with protocol number

Syntax

getprotobynumber ( int $number ) : string

Parameters

number

The protocol number.

Return

Returns the protocol name as a string, or FALSE on failure.

Examples

<?

$number = 6;

$return = getprotobynumber($number);
echo $return;

?>
tcp

checkdnsrr

closelog

dns_check_record

dns_get_mx

dns_get_record

fsockopen

gethostbyaddr

gethostbyname

gethostbynamel

gethostname

getmxrr

getprotobyname

getservbyname

getservbyport

header

header_register_callback

header_remove

headers_list

headers_sent

http_response_code

inet_ntop

inet_pton

ip2long

long2ip

openlog

pfsockopen

setcookie

setrawcookie

socket_get_status

socket_set_blocking

socket_set_timeout

syslog

PHP

Home Menu