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() - 使字符串的第一个字符小写