久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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中,轉換首字母大寫的函數是ucfirst(),該函數的作用就是將字符串的首字母轉化為大寫,語法“ucfirst(string)”。

      php中轉換首字母大寫的函數是什么

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

      在php中,想要轉換首字母大寫,可以使用ucfirst()函數。(相反,想要轉換首字母小寫,可以使用lcfirst()函數。)

      ucfirst 函數能夠將字符串的第一個字母轉化為大寫。語法格式如下:

      ucfirst($string)

      其中,$string 為需要轉化的字符串。

      示例:

      <?php     $str = 'hello world!';     $str = ucfirst($str);     echo $str.'<br>';     $str2 = 'HELLO WORLD!';     $str2 = ucfirst(strtolower($str2));     echo $str2; ?>

      輸出結果:

      Hello world! Hello world!

      推薦學習:《PHP視頻教程》

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