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

親自試一試

同類函數
  • 二進制安全不區分大小寫的字符串比較 strcasecmp

    strcasecmp

    二進制安全不區分大小寫的字符串比較
  • 查找字符串的首次出現 strstr

    strstr

    查找字符串的首次出現
  • 將HTML實體轉換為相應的字符 html_entity_decode

    html_entity_decode

    將HTML實體轉換為相應的字符
  • 計算指定字符串在目標字符串中最後一次出現的位置(不區分大小寫) strripos

    strripos

    計算指定字符串在目標字符串中最後一次出現
  • 計算一個字符串的crc32 多項式 crc32

    crc32

    計算一個字符串的crc32多項式
  • 使用一個字符串分割另一個字符串為數組 explode

    explode

    使用一個字符串分割另一個字符串為數組
  • strstr的別名 strchr

    strchr

    strstr的別名
  • 反轉一個字符串 strrev

    strrev

    反轉一個字符串