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.

echo strstr("Hello world!","world");

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


Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.