PHP lcfirst() Function

PHP htmlspecialchars() Function
PHP levenshtein() Function

In this article, you will learn how to convert the first letter of the string to lowercase. The PHP LCFIRST() function converts the first letter of the given string to lowercase. This function is very useful in some scenarios for the developers.

What is the syntax of the LCFIRST()function in php?

lcfirst(string)
ParameterDescription
stringRequired. Specifies the string to convert
PHP LCFIRST() method

examples of the LCFIRST() function

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

<?php
echo lcfirst("Hello world!");
?>

PHP htmlspecialchars() Function
PHP levenshtein() Function

Stay up-to-date about PHP!

We don’t spam!

en English
X
Scroll to Top