Query: lcfirst
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LCFIRST(3) 1 LCFIRST(3) lcfirst - Make a string's first character lowercaseSYNOPSISstring lcfirst (string $str)DESCRIPTIONReturns 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.PARAMETERSo $str - The input string.RETURN VALUESReturns the resulting string.EXAMPLESExample #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 ALSOucfirst(3), strtolower(3), strtoupper(3), ucwords(3). PHP Documentation Group LCFIRST(3)