PHP strtoupper()
function will return any lowercase alphabetic letters to UPPERCASE.
This TapGen tutorial will discuss How to convert a PHP variable to uppercase using the strtoupper()
function.
Syntax:
strtoupper($variableName);
Here's an example of string to uppercase using PHP:
PHP strtoupper() Function
$variableName = "Hello TapGen";
$uppercaseName = strtoupper($variableName);
echo $uppercaseName;
Output:
HELLO TAPGEN
This PHP strtoupper()
function will change the content of $variableName to uppercase in output.
If you have any more questions about string manipulation or anything else in PHP, just let me know on our forum
Learn to code with the world's largest web developer site. Not sure where to begin? HTML is The language for building web pages Learn HTML Tutorial with Tapgen.
=================================