Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP lcfirst() Function

PHP lcfirst() Function

PHP String Reference Manual PHP String Reference Manual

Example

Convert the first character of "Hello" to lowercase.:

Run Example »


Definition and Usage

The lcfirst() function converts the first character of a string to lowercase.

Related functions:


Syntax

lcfirst(

string

)

Parameters Description
string Required. Specifies the string to convert.

Technical Details

Return Value: Returns the converted string.
PHP Version: 5.3.0+

PHP String Reference Manual PHP String Reference Manual