$hei=array( '中国', '日本' ); $blacklist="/".implode("|",$hei)."/i"; $str="中国一是一个很好的国家"; if(preg_match($blacklist, $str, $matches)){ print "found:". $matches[0]; } else { print "not found."; }