getservbyname

PHP 4, PHP 5, PHP 7, PHP 8
getservbyname - Get port number associated with an Internet service and protocol

Example #1 getservbyname example

PHP Version:


Example #2 of getservbyname

PHP Version: