|
|
Tutorials » Php »
|
Topic |
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.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|