strstr:Returns part of haystack string from the first occurrence of needle to the end of haystack.If needle is not found, returns FALSE. If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. This function is case-sensitive. For case-insensitive searches, use stristr().
strstr Returns part of string from the first occurrence of needle(sub string that we finding out ) to the end of string.$email= ‘firstname.lastname@example.org’;
$domain = strstr($email, ‘@’);
echo $domain; // prints @gmail.com
here @ is the needlestristr is case-insensitive means able not able to diffrenciate between a and A