Display the drop-down list

stristr()

« stripslashes | strlen »
<?php
$string 
stristr (
    
// string $haystack
    
// mixed $needle
    
?  // [bool $before_needle = false]
);
?>
Result
$string = 'ER@EXAMPLE.com'
Examples
#1 stristr  ("USER@EXAMPLE.com",
 
"e")
#2 stristr  ("USER@EXAMPLE.com",
 
"e",
 
true)
#3 stristr  ("Hello World!",
 
"earth")
#4 stristr  ("APPLE",
 
97)
See also
grapheme_stristr, mb_stristr, preg_match, stripos, strpbrk, strrchr, strstr