searches for a word in some string for example i want to know if the $mystr contains the word hello???????
Take a look at [man]strpos[/man] and other string functions
if (strpos($mystr, 'hello') != false) { is there; } else { is not there; }