strtoupper
strtoupper
Make a string uppercase
string **strtoupper** string $string
Returns with all ASCII alphabetic characters
converted to uppercase.
string
Bytes in the range (0x61) to
(0x7a) will be converted to the corresponding uppercase letter by subtracting
32 from each byte value.
"a"``"z"
This can be used to convert ASCII characters within strings encoded with
UTF-8, since multibyte UTF-8 characters will be ignored. To convert multibyte
non-ASCII characters, use .
mb_strtoupper
stringThe input string.
Returns the uppercased string.
Voorbeeld: example
<?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
?>
strtolower``ucfirst``ucwords``mb_strtoupper