← All docs

mb_ucfirst()

Converts the first character to Unicode title case.

mb_ucfirst()

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

Converts the first character to Unicode title case.

Parameters:

  • $string (string)
  • $encoding (?string), default null, optional

Returns: string

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mb_ucfirst is implemented in the compiler, see the internals page.