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

      php中字符串與字符替換用什么函數(shù)

      php中字符串與字符替換用str_replace()函數(shù)。str_replace()函數(shù)替換字符串中的一些字符(區(qū)分大小寫(xiě)),函數(shù)語(yǔ)法為:【str_replace(find,replace,string,count)】。

      php中字符串與字符替換用什么函數(shù)

      str_replace() 函數(shù)替換字符串中的一些字符(區(qū)分大小寫(xiě))。

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

      函數(shù)語(yǔ)法:

      str_replace(find,replace,string,count)

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

      參數(shù)說(shuō)明:

      • find 必需。規(guī)定要查找的值。

      • replace 必需。規(guī)定替換 find 中的值的值。

      • string 必需。規(guī)定被搜索的字符串。

      • count 可選。一個(gè)變量,對(duì)替換數(shù)進(jìn)行計(jì)數(shù)。

      代碼舉例:

      <?php $arr = array("blue","red","green","yellow"); print_r(str_replace("red","pink",$arr,$i)); echo "Replacements: $i"; ?>

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