HOW TO USE THE ucfirst() FUNCTION IN PHP
The ucfirst() function converts the first letter of a string to a capital letter.
Example 1:
$string="edmund";
$newstring=ucfirst($string);
echo $newstring;
The above will output: Edmund
Example 2:
$string="once upon a time in mexico.";
$newstring=ucfirst($string);
echo $newstring;
The above will output: Once upon a time in mexico.
|