Table of Contents
The ucfirst() function is used to change the first character of a string to uppercase. Otherwise, We can use the strtolower() function in combination with the ucfirst() function, if you need to make only first letter of the string to uppercase and rest of the string to lowercase.
Syntax
string – This parameter is required. It converts the first character of a string to uppercase.