mb_ucfirst

Make a string's first character uppercase

&reftitle.description; `string` `mb_ucfirst` `string` `string` ``string``null```encoding`&null;

Performs a multi-byte safe `ucfirst` operation, and returns a string with the first character of `string` title-cased.

&reftitle.parameters;

`string`

- The input string.

`encoding`

- The string encoding.

&reftitle.returnvalues;

Returns the resulting string.

&reftitle.notes;

By contrast to the standard case folding functions such as `strtolower` and `strtoupper`, case folding is performed on the basis of the Unicode character properties. Thus the behaviour of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such a-umlaut (ä).

For more information about the Unicode properties, please see &url.unicode.reports;.

&reftitle.seealso;

- `mb_lcfirst`
- `mb_convert_case`
- `ucfirst`