How to Convert A String To Uppercase in PHP
The PHP strtoupper()
function is used to convert a string to uppercase.
Try the below example to under the working of this function, which convert all alphabets of a string to uppercase.
Example:
1 2 3 4 | <?php $str = 'Welcome to Tecadmin.net'; echo strtoupper($str); ?> |
Output:
WELCOME TO TECADMIN.NET