當前位置: 首頁> 函數類別大全> 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>

親自試一試

同類函數
  • 計算字符串的metaphone鍵 metaphone

    metaphone

    計算字符串的metaphone鍵
  • 檢查字符串是否以給定的子字符串開頭 str_starts_with

    str_starts_with

    檢查字符串是否以給定的子字符串開頭
  • 將HTML實體轉換為相應的字符 html_entity_decode

    html_entity_decode

    將HTML實體轉換為相應的字符
  • 基於區域設置的字符串比較 strcoll

    strcoll

    基於區域設置的字符串比較
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 計算指定字符串在目標字符串中最後一次出現的位置 strrpos

    strrpos

    計算指定字符串在目標字符串中最後一次出現
  • 根據指定格式解析輸入的字符 sscanf

    sscanf

    根據指定格式解析輸入的字符
  • 將所有適用的字符轉換為HTML實體-將字符轉換為HTML 轉義字符 htmlentities

    htmlentities

    將所有適用的字符轉換為HTML實體-將字
熱門文章