Converts the first character of "Hello" to lowercase. :
<?phpecho lcfirst("Hello world!");?>The lcfirst() function converts the first character in a string to lowercase.
Related functions:
ucfirst() - Converts the first character in a string to uppercase.
ucwords() - Converts the first character of each word in a string to uppercase.
strtoupper() - Convert a string to uppercase.
strtolower() - Converts a string to lowercase.
lcfirst( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be converted. |
Return value: | Returns the converted string. |
---|---|
PHP version: | 5.3.0+ |