What is use of ucfirst() in php ?
The ucfirst() function is used for converting the first character of a string to uppercase.
Syntax of ucfirst() function:
ucfirst(string)
string is a parameter that is compulsory to given for converting
You can see below example of ucfirst() function in php.
<?php
//here call ucfirst() for cconverting string
echo ucfirst("well done");
?>
output will come of above example
Well done
0 Comment(s)