• PHP Video Tutorials

PHP - Function Lcfirst



Syntax

string lcfirst ( string $str )

Definition and Usage

It is used to make a string's first character should be lowercase.

Return Values

It returns the resulting string.

Parameters

Sr.No Parameters & Description
1

str

It is an input string

Example

Try out the following example

<?php
   $input = 'TUTORIALSPOINT';
   $input = lcfirst($input); 
   
   echo $input;
?>

This will produce following result − −

tUTORIALSPOINT
php_function_reference.htm
Advertisements