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

lcfirst

將字符串的第一個字符設為小寫
名稱:lcfirst
分類:字符串
所屬語言:php
一句話介紹:把字符串的首字符轉換為小寫。

實例

把"Hello" 的首字符轉換為小寫:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">lcfirst</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>

親自試一試

同類函數
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式
  • strstr的別名 strchr

    strchr

    strstr的別名
  • 計算字符串的md5哈希值 md5

    md5

    計算字符串的md5哈希值
  • 返回使用htmlspecialchars() 和htmlentities() 後的轉換錶 get_html_translation_table

    get_html_translation_table

    返回使用htmlspecialchars
  • 二進制安全字符串比較 strcmp

    strcmp

    二進制安全字符串比較
  • 將CSV字符串解析為數組 str_getcsv

    str_getcsv

    將CSV字符串解析為數組
  • 從字符串的開頭刪除空格(或其他字符) ltrim

    ltrim

    從字符串的開頭刪除空格(或其他字符)
  • 計算指定字符串在目標字符串中最後一次出現的位置(不區分大小寫) strripos

    strripos

    計算指定字符串在目標字符串中最後一次出現