mb_strtotitle

Синтаксис

native mb_strtotitle(string[], maxlength = 0);

Употреба

string
The string to convert.
maxlength
Optional size of the buffer. If 0, the length of the original string
will be used instead.

Описание

Performs a multi-byte safe (UTF-8) conversion of all chars in string to title case.

Забележка

Although most code points can be converted in-place, there are notable
exceptions and the final length can vary.

Забележка

Any type of punctuation can break up a word, even if this is
not grammatically valid. This happens because the titlecasing algorithm
does not and cannot take grammar rules into account.

Забележка

Examples:
  The running man                      | The Running Man
  NATO Alliance                        | Nato Alliance
  You're amazing at building libraries | You'Re Amazing At Building Libraries

Връщаща стойност

Number of bytes written.