WEB TUTORIALS
PRACTICE EXAMPLES
HTML REFERENCES
CSS REFERENCES
PHP REFERENCES
Advertisements

How to convert a string to uppercase in PHP

Topic: PHP / MySQLPrev|Next

Answer: Use the PHP strtoupper() function

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);
?>

Related FAQ

Here are some more FAQ related to this topic:

Advertisements
Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties