← All built-ins / strtoupper()

strtoupper()

strtoupper(string $s): string

Parameters

NameTypeDescription
$sstringinput string

Return value

The string with every ASCII letter uppercased.

Example

echo strtoupper("holy php");
HOLY PHP

See also

strtolower()ucfirst()