主页 > 技术知识 > php正则连接中文本程序
$htm = "<a href='#39;>test1</a><br />" .
          "<a href='#39;>test2</a><br />" .
          "<a href='#39;>test3</a><br />" .
          "<a href='#39;>test4</a><br />" .
          "<a href='#39;>test5</a><br />";

   echo $htm . "<br />";
   echo stripthetag($htm);

function stripthetag($link) {

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

  

© Copyright 2014.  www. jiachong. com.  All  Rights  Reserved粤ICP备11096607号-19