當前位置: 首頁> 函數類別大全> strtoupper

strtoupper

將字符串轉化為大寫
名稱:strtoupper
分類:字符串
所屬語言:php
一句話介紹:把字符串轉換為大寫字母。

實例

把所有字符轉換為大寫:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">strtoupper</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Hello WORLD!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

親自試一試

同類函數
  • 獲取字符串長度 strlen

    strlen

    獲取字符串長度
  • 二進制安全字符串比較 strcmp

    strcmp

    二進制安全字符串比較
  • 返回有關字符串中使用的字符的信息-統計string 中每個字節值(0..255)出現的次數 count_chars

    count_chars

    返回有關字符串中使用的字符的信息-統計s
  • 重複一個字符串 str_repeat

    str_repeat

    重複一個字符串
  • 將CSV字符串解析為數組 str_getcsv

    str_getcsv

    將CSV字符串解析為數組
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 將字符串轉化為小寫 strtolower

    strtolower

    將字符串轉化為小寫
  • 將字符由一種Cyrillic 字符轉換成另一種 convert_cyr_string

    convert_cyr_string

    將字符由一種Cyrillic字符轉換成另
熱門文章