1//string to all uppercase
2$string = "String with Mixed use of Uppercase and Lowercase";
3//php string to uppercase
4$string = strtoupper($string);
5// = "STRING WITH MIXED USE OF UPPERCASE AND LOWERCASE"
1$lowercase = "this is lower case";
2$uppercase = strtoupper($lowercase);
3
4echo $uppercase;
5// THIS IS LOWER CASE
1<?php
2/* There is a function in php wich convert all string to uppercase */
3
4 echo strtoupper("Hello samy! how are u ?");
5
6// output : HELLO SAMY! HOW ARE U ?
7?>
1
2<?php
3$str = "Mary Had A Little Lamb and She LOVED It So";
4$str = strtoupper($str);
5echo $str; // muestra: MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
6?>
7
8
1$lowercase = "this is lower case";
2$uppercase = strtoupper($lowercase);
3
4echo $uppercase;