← All built-ins / lcfirst()

lcfirst()

lcfirst(string $s): string

Parameters

NameTypeDescription
$sstringinput string

Return value

The string with its first character lowercased.

Example

echo lcfirst("Holy PHP");
holy PHP

See also

ucfirst()strtolower()