I have following code which check does targeted word exits in sentence and it's working.
$text = "blablavalueblabla";
$word = "value";
$pos = strpos($text, $word);
if ($pos === false) {
echo "You word is found in this sentence";
} else {
echo "Your word it's not found in this sentence";
}
But,what i need to add to make it possible with multiple values?
Something like:
$word = "value OR value2 OR value3 OR value4 OR etc";
As you can see i tried with OR,with ||,and with some other combinations but nothing worked.So i want to check more words which i stated are they present in sentence.