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;
1
2setlocale(LC_CTYPE, 'de_DE.UTF8');
3
4// be noted
5echo strtoupper('Umlaute äöü in uppercase'); // outputs "UMLAUTE äöü IN UPPERCASE"
6echo mb_strtoupper('Umlaute äöü in uppercase', 'UTF-8'); // outputs "UMLAUTE ÄÖÜ IN UPPERCASE"