How to convert a string to uppercase in PHP
strtoupper()
You can use the PHP strtoupper() function to convert a string to uppercase.
Let's try out the following example to understand how this function basically works:
<?php $my_str = 'The quick brown fox jumps over the lazy dog.'; echo strtoupper($my_str); ?>
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Use the PHP
strtoupper()functionYou can use the PHP
strtoupper()function to convert a string to uppercase.Let's try out the following example to understand how this function basically works:
need an explanation for this answer? contact us directly to get an explanation for this answer