久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php如何去掉html標(biāo)簽

      php如何去掉html標(biāo)簽

      php 中有個(gè) strip_tags 函數(shù)可以方便地去除 HTML 標(biāo)簽。

      用法如下:

      echo strip_tags($html); // 去除 $html 中的 HTML、XML 以及 PHP 的標(biāo)簽。

      例如:

      $html = '<div id="test"><span>www.anddd.com</span></div>'; echo strip_tags($html);//將會(huì)輸出www.anddd.com

      對(duì)于非標(biāo)準(zhǔn)的 HTML 代碼也能正確的去除:

      echo strip_tags('<a href="www.php.cn"></a>'); //輸出 www.php.cn

      相關(guān)參考:php中文網(wǎng)

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)