Home > php教程 > PHP源码 > body text

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

PHP中文网
Release: 2016-05-25 17:09:20
Original
1080 people have browsed it

跳至

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

  



//过滤结束
Copy after login

                   

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template