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

ucfirst

Description

The ucfirst of String for PHP makes the first character of a string uppercase.

Syntax

ucfirst(
    string $string
): string

Parameters

string

The input string.

Return

Returns the modified string.

Examples

1 · string

<?

$string = "case";

$return = ucfirst($string);

echo $return;
Case