Current Location: Home> Function Categories> lcfirst

lcfirst

Set the first character of the string to lowercase
Name:lcfirst
Category:String
Programming Language:php
One-line Description:Converts the first character of the string to lowercase.

Example

Convert the first character of "Hello" to lowercase:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">lcfirst</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Hello world!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Try it yourself

Similar Functions