➤ The ucfirst() function converts the first character of a string to uppercase. Syntax:
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.
by Levani Makhareishvili
2 years ago
PHP
Function
1
Pro tip: use ```triple backticks around text``` to write in code fences