lcfirst
lcfirst
Make a string's first character lowercase
string **lcfirst** string $string
Returns a string with the first character of
lowercased if that character is
an ASCII character in the range (0x41) to
(0x5a).
string``"A"``"Z"
stringThe input string.
Returns the resulting string.
Voorbeeld: example
<?php
$foo = 'HelloWorld';
echo lcfirst($foo), PHP_EOL; // helloWorld
$bar = 'HELLO WORLD!';
echo lcfirst($bar), PHP_EOL; // hELLO WORLD!
echo lcfirst(strtoupper($bar)), PHP_EOL; // hELLO WORLD!
?>
ucfirst``strtolower``strtoupper``ucwords