The strtoupper() function convert all alphabetic characters to uppercase.
strtoupper ( string $string ) : string
| Parameter Name | Descrption | 
|---|---|
| $string | Required, The input string. | 
Returns the uppercased string.
$string = 'Test string'; $string = strtoupper($string); echo $string; //TEST STRING $string = 'Test STRING'; $string = strtoupper($string); echo $string; //TEST STRING
Related Functions