PHP ucfirst() Function

PHP trim() Function
PHP ucwords() Function

what is the syntax of the UCFIRST() function in php?

ucfirst(string)
ParameterDescription
stringRequired. Specifies the string to convert
PHP UCFIRST() method

examples of the UCFIRST() function

Example 1. In this example, we convert the first character of “hello” to uppercase.

<?php
echo ucfirst("hello world!");
?>
PHP trim() Function
PHP ucwords() Function
en English
X
Scroll to Top