Interview Questions

What is the functionality of the function strstr and stristr?

PHP Interview Questions and Answers


(Continued from previous question...)

What is the functionality of the function strstr and stristr?

strstr() returns part of a given string from the first occurrence of a given substring to the end of the string. For example: strstr("user@example.com","@") will return "@example.com".
stristr() is idential to strstr() except that it is case insensitive.

(Continued on next question...)

Other Interview Questions