lcfirst
Set the first character of the string to lowercase
The lcfirst()
function converts the first character in the string to lowercase.
strtolower()
- Convert strings to lowercasestrtoupper()
- Convert string to uppercaseucfirst()
- Convert the first character in a string to uppercaseucwords()
- Convert the first character of each word in a string to uppercaseConvert the first character of "Hello" to lowercase:
<?php echo lcfirst ( "Hello world!" ) ; ?>
Try it yourself
lcfirst ( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be converted. |