For example, I have php array $php_arr_to_check = array(\"green\", \"red\", \"blue\");
$php_arr_to_check = array(\"green\", \"red\", \"blue\");
And have many mysql rows like this
Id | TextToCheck
I haven't MySQL for to test next query. You try something:
SELECT Id, TextToCheckIn REGEXP "(${word1})|(${word2})" AS Flag FROM table WHERE Flag = 1