function in_str($string, $sub) { if(preg_match('/('.join('|', $sub).')/siU', $string, $m)) { return 1; } else { return 0; } }