Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

lcfirst

Description

The lcfirst of String for PHP 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 · lower

<?

$string = 'case case case';

$return = lcfirst($string);

echo $return;

?>
case case case

2 · string · camel

<?

$string = 'Case Case Case';

$return = lcfirst($string);

echo $return;

?>
case Case Case

3 · string · upper

<?

$string = 'CASE CASE CASE';

$return = lcfirst($string);

echo $return;

?>
cASE CASE CASE
HomeMenu