Basic PHP Programming Question:

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

Tweet Share WhatsApp

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 PDF Read All 139 PHP Questions
Previous QuestionNext Question
How do you pass a variable by value?When are you supposed to use endif to end the conditional statement?