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.

<?php
echo strstr("Hello world!","world");
?>

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

 

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.