为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么?为什么? print_r($matches); 看看结果,估计在你的正则上出现问题了! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?$meg = "<html><head> <meta name=robots content=noindex> <link rel=icon href=/favicon.ico type=image/x-icon /> <meta content=text/html;charset=gb2312 http-equiv=content-type> <title>欢迎来到CSDN技术社区</title></head><frameset name=fstmain cols=219,* frameborder=1 framespacing=8 bordercolor=#3366cc > <noframes >请使用支持 frame 的浏览器或者访问以下地址来进行站点导航: <a href=/tree/treenodeData/sitemap.htm target=_blank>CSDN 社区地图</a> <a href=http://topic.csdn.net/t/ target=_blank>CSDN 社区帖子列表</a> </noframes> <frameset name=fraleftframe rows=91,* framespacing=0 frameborder=0 > <frame name= src=/logo/logo.aspx marginheight=0 /> <frame name= src=/Tree/tree.htm marginheight=0 /> </frameset> <frame name=ContentFrame marginheight=0 scrolling=yes src=index.htm> /></frameset></html>";$a = array ('if(self == top)', '<script>', '</script>', '');$b = array ('', '', '', '');$meg = str_replace ($a, $b, $meg);print_r($meg);preg_match_all ('/\<(.*)/', $meg, $matches);$cou = sizeof ($matches[0]);print_r($matches);echo $cou;?> PHP 过滤指定链接 echo eregi_replace('[\[\]]','',"[123]1234567");这个怎么不行 请教php code39条形码问题 如何使用PHP程序开发高效的WEB网络系统 急!在线等...... 为什么我的apache服务器无法解析php程序 phpmyadmin传入空间问题 如何判断点击次数? Fatal error: Call to undefined function mb_detect_encoding() thinkPHP 上传文件控制器接收不到$_FILES 关于Joomla easy!
$meg = "
<html>
<head>
<meta name=robots content=noindex>
<link rel=icon href=/favicon.ico type=image/x-icon />
<meta content=text/html;charset=gb2312 http-equiv=content-type>
<title>欢迎来到CSDN技术社区</title>
</head>
<frameset name=fstmain cols=219,* frameborder=1 framespacing=8 bordercolor=#3366cc >
<noframes >请使用支持 frame 的浏览器或者访问以下地址来进行站点导航:
<a href=/tree/treenodeData/sitemap.htm target=_blank>CSDN 社区地图</a>
<a href=http://topic.csdn.net/t/ target=_blank>CSDN 社区帖子列表</a>
</noframes> <frameset name=fraleftframe rows=91,* framespacing=0 frameborder=0 >
<frame name= src=/logo/logo.aspx marginheight=0 />
<frame name= src=/Tree/tree.htm marginheight=0 />
</frameset>
<frame name=ContentFrame marginheight=0 scrolling=yes src=index.htm> />
</frameset>
</html>
";$a = array ('if(self == top)', '<script>', '</script>', '');
$b = array ('', '', '', '');$meg = str_replace ($a, $b, $meg);
print_r($meg);
preg_match_all ('/\<(.*)/', $meg, $matches);$cou = sizeof ($matches[0]);
print_r($matches);
echo $cou;
?>