久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php如何刪除字符串中的html標簽

      php刪除字符串中的html標簽的方法:可以利用php內(nèi)置函數(shù)strip_tags()來刪除。該函數(shù)可以剝離字符串中的HTML、XML的標簽,并返回被剝離的字符串,如【strip_tags("Hello world!")】。

      php如何刪除字符串中的html標簽

      strip_tags() 函數(shù)剝?nèi)プ址械?HTML、XML 以及 PHP 的標簽,并返回被剝離的字符串。

      (推薦教程:php圖文教程)

      語法:

      strip_tags(string,allow)

      參數(shù):

      • string 必需。規(guī)定要檢查的字符串。

      • allow 可選。規(guī)定允許的標簽。這些標簽不會被刪除。

      (視頻教程推薦:php視頻教程)

      舉例:

      <?php echo strip_tags("Hello <b><i>world!</i></b>","<b>"); ?>
      <?php echo strip_tags("Hello <b>world!</b>"); ?>

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