- strpos: documentation ( source)
<?php $mystring = 'This Question is about php strings';
$wordsToFind = array('php','strings','Question');
foreach ($wordsToFind as $word)
if (strpos($mystring, $word)) {
echo $word.' has been found'; echo "\n";
}