久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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_replace來替換換行 ,代碼為【$str = str_replace(array())】;2、使用正則替換 ,代碼為【$str = preg_replace('//s*/', '', $str)】。

      php如何刪除換行

      php刪除換行的方法:

      php 不同系統(tǒng)的換行

      不同系統(tǒng)之間換行的實(shí)現(xiàn)是不一樣的

      linux 與unix中用 n

      MAC 用 r

      window 為了體現(xiàn)與linux不同 則是 rn

      所以在不同平臺上 實(shí)現(xiàn)方法就不一樣

      php 有三種方法來解決

      1、使用str_replace來替換換行

      $str = str_replace(array("rn", "r", "n"), "", $str);

      2、使用正則替換

      $str = preg_replace('//s*/', '', $str);

      3、使用php定義好的變量 (建議使用)

      $str = str_replace(PHP_EOL, '', $str);

      相關(guān)學(xué)習(xí)推薦:php編程(視頻)

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