how to Create a string, search for a word in that string. If the word is found display word found. If not found display a message saying word not found.
<?php
$string = 'Hello World!';
if(stristr($string, 'Hello') === TRUE) {
echo '"Hello" found in string';
}else{
echo '"Hello" not found in string';
}
?>