Question:How do you retrive internet service port number in php?
Answer The getservbyname() function returns the port number of a specified service.
Prototype:
int getservbyname(string service, string protocol)
Example:
<?php
echo "HTTP's default port number is: ".getservbyname("http","tcp");
?>
+ Report
How do you retrive internet service port number in php?