<?php
$email = 'USER@EXAMPLE.com';
echo stristr($email, 'e');
// ER@EXAMPLE.com を出力する
?>
<?php
$string = 'Hello World!';
if(stristr($string, 'earth') === FALSE) {
echo '"earth" not found in string';
}
// 出力: "earth" not found in string
?>
<?php
$string = 'APPLE';
echo stristr($string, 97); // 97 = lowercase a
// 出力: APPLE
?>
固有名詞の分類