getservbyname.php : getservbyname « Date « PHP






getservbyname.php

 
<?php
   echo "HTTP's default port number is: ".getservbyname("http", "tcp"); 
?>
  
  

Related examples in the same category

1.Using getservbyname()