STRTOUPPER(3) 1 STRTOUPPER(3)
strtoupper - Make a string uppercase
SYNOPSIS
string strtoupper (string $string)
DESCRIPTION
Returns $string with all alphabetic characters converted to uppercase.
Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (a) will
not be converted.
PARAMETERS
o $string
- The input string.
RETURN VALUES
Returns the uppercased string.
EXAMPLES
Example #1
strtoupper(3) 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
?>
NOTES
Note
This function is binary-safe.
SEE ALSO
strtolower(3), ucfirst(3), ucwords(3), mb_strtoupper(3).
PHP Documentation Group STRTOUPPER(3)