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.