PHP lcfirst() Function
PHP lcfirst() Function
The lcfirst() function in PHP converts the first character of a string to lowercase if that character is alphabetic.
Syntax
lcfirst ( string $str )
Parameter
str(required)- This parameter signifies the input string.
Return
This function returns a string with the first character lowercased if that character is alphabetic.
Example 1
Output
Actual string:Hello World! Ater the lcfirst() function... New String: hello World!
Example 2
Output
Ater the lcfirst() function... this is a PHP Join Function
Example 3
Output
Ater the lcfirst() function... 1 2 3 4 5 6