Get Internet service which corresponds to port and protocol in PHP
Description
The following code shows how to get Internet service which corresponds to port and protocol.
Example
<?php
echo "Port 80's default service is: ".getservbyport(80, "tcp");
?>
The code above generates the following result.