php controlla se la stringa contiene word
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
controlla se il testo esiste nella stringa php
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}