Page MenuHomePhorge

function phutil_utf8_ucwords($str)
Arcanist Technical Documentation ()

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$strUTF-8 input string.
Return
stringInput, in some semblance of title case.