What is the easiest way to capitalize the first letter in each word of a string?
See the faq.
I don't believe ucfirst()
satisfies the OP's question to capitalize the first letter of each word in a string without splitting the string and joining it later.