// поиск в строке (strpos)
function in_string($haystack, $needle) {
if (is_array($needle)) {
foreach ($needle as $n) {
if (mb_strpos($haystack, $n) !== false) return true;
}
}
else return mb_stripos($haystack, $needle) !== false;
}
// http://community.sitepoint.com/t/in-string-like-in-array/3562/4