LCFIRST(3) 1 LCFIRST(3)
lcfirst - Make a string's first character lowercase
SYNOPSIS
string lcfirst (string $str)
DESCRIPTION
Returns a string with the first character of $str , lowercased if that character is alphabetic.
Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (a) will
not be converted.
PARAMETERS
o $str
- The input string.
RETURN VALUES
Returns the resulting string.
EXAMPLES
Example #1
lcfirst(3) example
<?php
$foo = 'HelloWorld';
$foo = lcfirst($foo); // helloWorld
$bar = 'HELLO WORLD!';
$bar = lcfirst($bar); // hELLO WORLD!
$bar = lcfirst(strtoupper($bar)); // hELLO WORLD!
?>
SEE ALSO
ucfirst(3), strtolower(3), strtoupper(3), ucwords(3).
PHP Documentation Group LCFIRST(3)