I need something like this
$keywords = array('google', 'yahoo', 'facebook');
$mystring = 'alice was going to the yahoo CEO and couldn't him her';
$pos = strpos($mystring, $keywords);
if ($pos === false) {
echo "The string '$keywords' was not found in the string '$mystring'";
}
Basically I need to search several terms in a string if find if any exists in the string.
I'm wondering if it would be possible to set the keywords /search to case insensitive