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

      php怎么去除字符串首尾空格

      php去除字符串首尾空格的方法:可以利用php內置函數(shù)trim()來去除字符串首尾空格。trim()函數(shù)可以移除字符串兩側的空白字符或其他預定義字符,并返回已修改的字符串。

      php怎么去除字符串首尾空格

      trim() 函數(shù)移除字符串兩側的空白字符或其他預定義字符,并返回已修改的字符串。

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

      語法:

      trim(string,charlist)

      參數(shù):

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

      • charlist 可選。規(guī)定從字符串中刪除哪些字符。

      (視頻教程推薦:編程入門)

      代碼實現(xiàn):

      <?php $str = " Hello World! "; echo "Without trim: " . $str; echo "<br>"; echo "With trim: " . trim($str); ?>

      輸出結果:

      ithout trim: Hello World! <br>With trim: Hello World!

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