How to use mb_convert_case() function In PHP
The mb_convert_case() function in PHP is used for case folding, which means converting all characters of a string to uppercase or lowercase based on the specified mode.
Example:
<?php
$str = "geeks^for+geeks";
print ("Original String \n");
print ($str. "\n");
// Convert string to uppercase using mb_convert_case
$upperStr = mb_convert_case($str, MB_CASE_UPPER);
print ("Uppercase String \n");
print ($upperStr);
?>
Output
Original String geeks^for+geeks Uppercase String GEEKS^FOR+GEEKS
How to convert lowercase string to uppercase using PHP ?
A string is a storage object in PHP comprising characters, numbers or special symbols. Strings in PHP are case-sensitive. The interconversion between lower and upper case can be easily done using various in-built methods in PHP.