我需要这样的东西
$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'";
}
基本上,如果查找字符串中是否存在任何项,我需要在字符串中搜索多个术语。
我想知道是否可以将关键字 /search 设置为不区分大小写