Home > Article > Backend Development > How to convert lowercase letters to uppercase letters in php
How to convert lowercase letters to uppercase letters in php: You can use the strtoupper() function to achieve this. The strtoupper() function can convert a string to uppercase and return the converted string, for example: [strtoupper("Hello World")].
strtoupper() function converts a string to uppercase and returns the string converted to uppercase.
(Recommended tutorial: php graphic tutorial)
Grammar:
strtoupper(string)
Example:
<?php echo strtoupper("Hello WORLD!"); ?>
(Recommended learning video: php video tutorial)
Similar functions are also:
strtolower() function converts the string to lowercase.
Example:
<?php echo strtolower("Hello WORLD."); ?>
The above is the detailed content of How to convert lowercase letters to uppercase letters in php. For more information, please follow other related articles on the PHP Chinese website!