PHP ucfirst() Function

P
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

Add comment

Tutor Network

Share this

Learn PHP from A to Z