$s = "php programming";
echo stristr($s, 'G') . "<br />"; // Case-insensitive strstr
if (stristr($s, 'Z') === false) {
echo "false" . "<br />";
}
if (stristr($s, 'L') !== false) {
echo "exist";
}
else {
echo "not exist";
}
/*
run:
gramming
false
not exist
*/