PHP.nl

mb_ucfirst

mb_ucfirst

Make a string's first character uppercase

string **mb_ucfirst** string $string  $encoding

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

stringThe input string.

encodingThe string encoding.

Returns the resulting string.

Opmerking: > By contrast to the standard case folding functions such as and , 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 (ä). strtolower``strtoupper

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

mb_lcfirst``mb_convert_case``ucfirst