PHP 8.4.0 RC4 available for testing

mb_lcfirst

(PHP 8 >= 8.4.0)

mb_lcfirstMake a string's first character lowercase

説明

mb_lcfirst(string $string, string $encoding = null): string

Performs a multi-byte safe lcfirst() operation, and returns a string with the first character of string lowercased if that character is an ASCII character in the range "A" (0x41) to "Z" (0x5a).

パラメータ

string
The input string.
encoding
The string encoding.

戻り値

Returns the resulting string.

参考

  • mb_ucfirst() - Make a string's first character uppercase
  • lcfirst() - 文字列の最初の文字を小文字にする
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top