PHP 버전
5.3+
$original_string_1 = 'Hello, World!';
$lcfirst_string_1 = lcfirst($original_string_1);
echo $lcfirst_string_1; // 출력: 'hello, World!'

$original_string_2 = 'HELLO';
$lcfirst_string_2 = lcfirst($original_string_2);
echo $lcfirst_string_2; // 출력: 'hELLO'
lcfirst(string $string): string
$utf8_string = 'Äpfel und birnen';

// PHP 8.4에서 도입된 mb_lcfirst()
$capitalized_utf8 = mb_lcfirst($utf8_string, 'UTF-8'); // 대문자 Ä가 대문자 소문자 ä로 변환됨
echo $capitalized_utf8; // 출력: 'äpfel und birnen'

// lcfirst()
$capitalized = lcfirst($utf8_string); // 예상과 다른 결과
echo $capitalized; // 출력: 'Äpfel und birnen'
$text = 'Hello';
lcfirst($text);
echo $text; // 출력: 'Hello' (원본 문자열은 변경되지 않음)

$text = lcfirst($text);
echo $text; // 출력: 'hello'