PHP
Also, you can convert a string to lowercase characters using PHP
Syntax
strtoupper ($string)
Parameters
The strtoupper function expects only one parameter. Pass the string you need to convert to uppercase as the parameter.
Return Value
The function returns a string after converting all alphabetical characters to uppercase.
Input: strtoupper('concatly') Output: CONCATLY Input: strtoupper('Brnging Knowledge Together' Output: BRINGING KNOWLEDGE TOGETHER

Examples
Let’s consider a couple of examples of using the function.
Example 1: Simple String
You can pass an alphabetical string to the function and convert it to uppercase.
<?php $string = 'This is a mixed STRING 123'; $uppercase = strtoupper($string); echo $uppercase; /* THIS IS A MIXED STRING 123 */ ?>
Example 2: Array of Strings
You can use the PHP array_map Function to directly convert all the strings in an array to uppercase by passing strtoupper as the callback function.
<?php $arrayOfStrings = array( 'String 1', 'string 2 is lower', 'another string' ); $upperCaseArray = array_map('strtoupper', $arrayOfStrings); print_r($upperCaseArray); /* Array ( [0] => STRING 1 [1] => STRING 2 IS LOWER [2] => ANOTHER STRING ) */ ?>
Conclusion
We discussed the PHP

Vishesh is currently working as an Intermediate Software Engineer with Orion Health, New Zealand. He graduated with a Masters in Information Technology from the University of Auckland in 2021. With more than 4 years of work experience, his expertise includes Java, Python, Machine Learning, PHP, Databases, Design and Architecture.