Latest web development tutorials

PHP lcfirst () function

PHP String Reference PHP String Reference

Examples

The "Hello" in the first character converted to lowercase. :

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

Running instance »

Definition and Usage

lcfirst () function to convert the first character in the string to lowercase.

Related functions:


grammar

lcfirst( string )

参数 描述
string 必需。规定要转换的字符串。

technical details

return value: Returns the converted string.
PHP version: 5.3.0+


PHP String Reference PHP String Reference