一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

php正则连接中文本程序

时间:2010-07-27 编辑:简简单单 来源:一聚教程网

 代码如下 复制代码

   $htm = "test1
" .
          "test2
" .
          "test3
" .
          "test4
" .
          "test5
";

   echo $htm . "
";
   echo stripthetag($htm);

function stripthetag($link) {

   return (preg_replace('@<[/!]*?[^<>]*?>@si', ' ', $link));
}

 

热门栏目