//过滤开始 $guolvstr = array("王爷", "女性", "什么"); $keyseo = "王爷与刁蛮小公主。狗小云QQ:455873983 飘过" foreach ($guolvstr as $vadlue) { $vadlue = iconv("GBK","UTF-8",$vadlue);//请注意修改本段与文本值的编码问题 $guolvfen = explode($vadlue,$keyseo);//定义分隔符 if("$guolvfen[0]" == "$keyseo"){ } else { header("Location: http://www.256seo.com"); exit; } } //过滤结束