Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

  2. A.

     getportname()

    B.

     getservername()

    C.

     getserverbyname()

    D.

     getservbyname()

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment