O comando que vai converter uma string para maiúsculas é o strtoupper

1
2
3
4
5
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
print $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>

O Resultado será MARY HAD A LITTLE LAMB AND SHE LOVED IT SO

Valeu 🙂

Tags: