PHP strtoupper Function

What is strtoupper Function?

Explanation

In PHP, this function is used to convert a string to uppercase.

Syntax:


strtoupper(string)

In the above syntax, given "string" is converted to uppercase.

Example :


<?php
$str = "Hi FOLKS welcome to Web our WORLD";
$str = strtoupper($str);
echo $str;
?>
Result :

HI FOLKS WELCOME TO WEB OUR WORLD

In the above example the string which is in both cases is convereted to uppercase.

PHP Topics


Ask Questions

Ask Question