Your Ad Here
String Function
Execute String Function Online
String Functions Online Tool

Php String to Uppercase Tutorial

 

strtoupper() - String to Uppercase Tutorial

The function strtoupper() converts a string to a uppercase.

string strtoupper ( string $str )

The $str parameter is a string.
The returned value is a string with uppercased characters.

 

Php String to Uppercase Example

Example: Let's convert the string "HeLLo WoRlD!" to uppercase

$string = "HeLLo WoRlD!";
$string_to_uppercase = strtoupper($string);
echo $string_to_uppercase;

The string-to-uppercase function returns the value "HELLO WORLD!"

Test it online using our String-to-Uppercase Tool