• PHP Video Tutorials

PHP - Function getservbyport



Syntax

string getservbyport ( int $port , string $protocol )

Definition and Usage

It is used to get internet services which has corresponding to port number

Return Values

It will return internet server as a string or else failure on False condition

Parameters

Sr.No Parameters & Description
1

port

It contains information about port number

2

protocol

It contains protocol information about information

php_function_reference.htm
Advertisements