It depends.
mb_convert_case()is multibyte. ucwords()no.
mb_convert_case()requires an extension that is not always available. ucwords()always available.
So, if your application uses only single-byte encodings, then it ucwords()will give you better portability.
But if your application may need to handle multibyte encodings, then it ucwords()will fail.
user213154
source
share