I have an array of matching words:
$search = array("lorem","dolor","sit");
And an array to search in:
$results= array(
"Lorem ipsum dolor sit amet, consectetur",
"Ut enim ad minim veniam, quis nostrud exercitation"
"Duis aute irure dolor in reprehenderit in voluptate velit esse"
"Excepteur sint occaecat cupidatat non proident"
);
Is there a regex to return true where two of given words are matching?