Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND STRISTR()?

PHP Interview Question
PHP Interview Question

Answer:

string strstr ( string haystack, string needle ) returns part of haystack string from the first occurrence of needle to the end of haystack. This function is case-sensitive.

stristr() is idential to strstr() except that it is case insensitive.

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How do you pass a variable by value?When are you supposed to use endif to end the conditional statement?