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

親自試一試

同類函數
  • 計算字符串中全部字符都存在於指定字符集合中的第一段子串的長度 strspn

    strspn

    計算字符串中全部字符都存在於指定字符集合
  • 判斷一個字符串中是否包含一個給定的子字符串 str_contains

    str_contains

    判斷一個字符串中是否包含一個給定的子字符
  • 打斷字符串為指定數量的字串 wordwrap

    wordwrap

    打斷字符串為指定數量的字串
  • 將數字格式化成貨幣字符串 money_format

    money_format

    將數字格式化成貨幣字符串
  • 查詢語言和區域設置信息 nl_langinfo

    nl_langinfo

    查詢語言和區域設置信息
  • 子字符串替換 str_replace

    str_replace

    子字符串替換
  • 從字符串的開頭和結尾去除空格(或其他字符) trim

    trim

    從字符串的開頭和結尾去除空格(或其他字符
  • strstr的別名 strchr

    strchr

    strstr的別名
熱門文章