php zkontrolujte, zda řetězec obsahuje slovo
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
php stristr
stristr ( string $haystack , mixed $needle [, bool $before_needle = FALSE ] ) : string