文字列の最初の文字を小文字にする
$string
string の最初の文字が ASCII の "A" (0x41) から "Z" (0x5a) までの範囲にあれば、 それを小文字にします。
string
"A"
"Z"
入力文字列。
変換後の文字列を返します。
例1 lcfirst の例
<?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! ?>