The ucfirst() function capitalizes the first word in a string.
Example
Actual PHP Output
Hello world!