Home >php教程 >PHP源码 >简单-关键字词组过滤整个文章

简单-关键字词组过滤整个文章

PHP中文网
PHP中文网Original
2016-05-25 17:09:201100browse

跳至

  //过滤开始
  
  
  
  
  
  $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;
   }
  
  
}

  



//过滤结束

                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn