久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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中將字符串首字母進(jìn)行大小寫轉(zhuǎn)換的方法有哪些

      php中將字符串首字母進(jìn)行大小寫轉(zhuǎn)換的方法有哪些

      每個(gè)單詞的首字母轉(zhuǎn)換為大寫:ucwords()

      <?php $foo = 'hello world!'; $foo = ucwords($foo);             // Hello World!   $bar = 'HELLO WORLD!'; $bar = ucwords($bar);             // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! ?>

      相關(guān)視頻教程推薦:php視頻教程

      第一個(gè)單詞首字母變大寫:ucfirst()

      <?php $foo = 'hello world!'; $foo = ucfirst($foo);             // Hello world!   $bar = 'HELLO WORLD!'; $bar = ucfirst($bar);             // HELLO WORLD! $bar = ucfirst(strtolower($bar)); // Hello world! ?>

      第一個(gè)單詞首字母變小寫:lcfirst()

      <?php $foo = 'HelloWorld'; $foo = lcfirst($foo);             // helloWorld   $bar = 'HELLO WORLD!'; $bar = lcfirst($bar);             // hELLO WORLD! $bar = lcfirst(strtoupper($bar)); // hELLO WORLD! ?>

      知識(shí)點(diǎn)補(bǔ)充:

      所有字母變大寫:strtoupper()

      所有字母變小寫:strtolower()

      相關(guān)文章教程推薦:php教程

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