what is the syntax of the UCFIRST() function in php?
ucfirst(string)
Parameter | Description |
---|---|
string | Required. Specifies the string to convert |
examples of the UCFIRST() function
Example 1. In this example, we convert the first character of “hello” to uppercase.
<?php
echo ucfirst("hello world!");
?>