PHP lcfirst() function


In this article, We will explain to you PHP lcfirst() function with example.

PHP lcfirst() function

lcfirst() function is a string function. which is accept string and return first character of a string to lowercase. so you can see our PHP String Function example.

Syntax

lcfirst(string);

Example

<?PHP
    $str = "This is my Website!";
    
    echo (lcfirst($str));
?>

Output

this is my Website!