HOW TO USE THE strtoupper() FUNCTION IN PHP
The strtoupper() function takes a string and converts all characters to upper case.
Example 1:
$oldstring="my name is john smith";
$newstring=strtoupper($oldstring);
echo $newstring;
The above will output: MY NAME IS JOHN SMITH.
Example 2:
$oldstring="My Name Is John Smith";
$newstring=strtoupper($oldstring);
echo $newstring;
The above will output: MY NAME IS JOHN SMITH.
|