久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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去掉字符串兩端空格的方法:可以利用php中的trim函數(shù)來實現(xiàn),如【$str = " Hello World! ";echo "使用 trim: " . trim($str);】。

      php如何去掉字符串兩端空格

      本文操作環(huán)境:windows10系統(tǒng)、php 7.3、thinkpad t480電腦。

      函數(shù):

      trim() 函數(shù)移除字符串兩側(cè)的空白字符或其他預(yù)定義字符。

      語法:

      trim(string,charlist)

      舉例:

      移除字符串兩端的空格

      <?php $str = " Hello World! "; echo "不使用 trim: " . $str; echo "<br>"; echo "使用 trim: " . trim($str); ?>

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