PHP 8.4.0 RC4 available for testing

mb_ucfirst

(PHP 8 >= 8.4.0)

mb_ucfirstMake a string's first character uppercase

Опис

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

Performs a multi-byte safe ucfirst() operation, and returns a string with the first character of string capitalized, if that character is an ASCII character in the range from "a" (0x61) to "z" (0x7a).

Параметри

string
The input string.
encoding
The string encoding.

Значення, що повертаються

Returns the resulting string.

Прогляньте також

add a note

User Contributed Notes

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