Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. Say we have two compare two strings which of the following function/functions can you use?
    1. strcmp()
    2. strcasecmp()
    3. strspn()
    4. strcspn()

  2. A.

     1 and 2

    B.

     3 and 4

    C.

     None of the mentioned

    D.

     All of the mentioned

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    All of the functions mentioned above can be used to compare strings in some or the other way.


Be The First To Comment