久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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怎么刪除字符串中的空格

      php刪除字符串中空格的方法:1、使用str_ireplace()函數(shù),語法“str_ireplace(' ', '', $str)”;2、使用str_replace()函數(shù),語法“str_replace(' ', '', $str)”。

      php怎么刪除字符串中的空格

      本教程操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      方法1:使用str_ireplace()函數(shù)

      <?php $str = 'hello world !'; $search = ' '; $replace = ''; echo str_ireplace($search, $replace, $str); ?>

      輸出:

      helloworld!

      方法2:使用str_replace()函數(shù)

      <?php $str = 'hello world !'; $str = str_replace(' ', '', $str); echo $str; ?>

      輸出:

      helloworld!

      推薦學(xué)習(xí):《PHP視頻教程》

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