lcfirst

Make a string's first character lowercase

Syntax

lcfirst(string $string): string

Parameters

string

The input string.

Return

Returns the resulting string.

Examples

1

<?

$string = 'case case';

$return = lcfirst($string);

echo $return;

?>
case case

2

<?

$string = 'Case Case';

$return = lcfirst($string);

echo $return;

?>
case Case

3

<?

$string = 'CASE CASE';

$return = lcfirst($string);

echo $return;

?>
cASE CASE

Internal

ucfirst

ucwords

External

PHP

Home Menu