setlocale(LC_CTYPE, 'de_DE.UTF8');
// be noted
echo strtoupper('Umlaute äöü in uppercase'); // outputs "UMLAUTE äöü IN UPPERCASE"
echo mb_strtoupper('Umlaute äöü in uppercase', 'UTF-8'); // outputs "UMLAUTE ÄÖÜ IN UPPERCASE"
string strtoupper ( $string )
$str = "upper";
//php string to uppercase
echo strtoupper($str); // => UPPER
<?php
echo strtoupper("Hello WORLD!");
?>
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>