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

親自試一試

同類函數
  • 將數字格式化成貨幣字符串 money_format

    money_format

    將數字格式化成貨幣字符串
  • 重複一個字符串 str_repeat

    str_repeat

    重複一個字符串
  • 計算給定文件的md5哈希值 md5_file

    md5_file

    計算給定文件的md5哈希值
  • 將邏輯順序希伯來文(logical-Hebrew)轉換為視覺順序希伯來文(visual-Hebrew),並且轉換換行符 hebrevc

    hebrevc

    將邏輯順序希伯來文(logical-He
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式
  • 翻譯字符或替換子字符串-轉換指定字符 strtr

    strtr

    翻譯字符或替換子字符串-轉換指定字符
  • 計算字符串的sha1哈希值 sha1

    sha1

    計算字符串的sha1哈希值
  • 使用uuencode 編碼一個字符串 convert_uuencode

    convert_uuencode

    使用uuencode編碼一個字符串