Examveda
Examveda

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

A. 1 and 2

B. 3 and 4

C. None of the mentioned

D. All of the mentioned

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Regular Expressions

Join The Discussion

Related Questions on Regular Expressions