Examveda
Examveda

Which one of the following function returns the port number of a specified service?

A. getportname()

B. getservername()

C. getserverbyname()

D. getservbyname()

Answer: Option D

Solution(By Examveda Team)

Example- getservbyname(“http”,”tcp”) will return 80.

This Question Belongs to PHP >> PHP Networking

Join The Discussion

Related Questions on PHP Networking