Home >Backend Development >PHP Tutorial >PHP regular connection Chinese text program_PHP tutorial

PHP regular connection Chinese text program_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-15 13:22:18804browse

$htm = "<a href=&#39;http://www.php100.net&#39;>test1</a><br />" .
          "<a href=&#39;http://www.php100.net&#39;>test2</a><br />" .
          "<a href=&#39;http://www.php100.net&#39;>test3</a><br />" .
          "<a href=&#39;http://www.php100.net&#39;>test4</a><br />" .
          "<a href=&#39;http://www.php100.net&#39;>test5</a><br />";

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

function stripthetag($link) {

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/447011.htmlTechArticle$htm = a href=http://www.php100.nettest1/abr / . a href=http://www.php100.nettest2/abr / . a href=http://www.php100.nettest3/abr / . a href=http://www.php100.nettest4/abr / . a hre...
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