function phutil_utf8_ucwords($str)libphutil Technical Documentation (Core Utilities)
function phutil_utf8_ucwords($str)
libphutil Technical Documentation (Core Utilities)
Convert a string to title case in a UTF8-aware way. This function doesn't necessarily do a great job, but the builtin implementation of ucwords() can completely destroy inputs, so it just has to be better than that. Similar to ucwords().
Parameters
string | $str | UTF-8 input string. |
Return
string | Input, in some semblance of title case. |
- Defined
- src/utils/utf8.php:745