The strtoupper()
function converts string to uppercase.
PHP strtoupper() Function has the following syntax.
string strtoupper ( string str )
str
is the string value we want to convert.
PHP strtoupper() function returns the string in uppercase.
Convert string to uppercase
<?PHP
$string = "PHP from java2s.com";
$a = strtoupper($string);
print($a);
?>
The code above generates the following result.