getservbyname

Example

 int getservbyname ( string $service , string $protocol ) 

Description

getservbyname() returns the Internet port which corresponds to service for the specified protocol as per /etc/services.

Return Values

Returns the port number, or FALSE if service or protocol is not found.