ucfirst(string)
For instance:
$string = "i am hungry !";
$result = ucfirst ($string);
echo $result;
// outputs : I am hungry !
➤ lcfirst() - converts the first character of a string to lowercase.
➤ ucwords() - converts the first character of each word in a string to uppercase.