PHP ucfirst() function
In this article, We will explain to you PHP ucfirst() function with example.
PHP ucfirst() function
ucfirst() function is a string function. which is accept string and return first character of a string to uppercase. so you can see our PHP String Function example.
Syntax
ucfirst(string);
Example
<?PHP $str = "this is my website!"; echo (ucfirst($str)); ?>
Output
This is my website!