.


Divya

strtoupper() Function in PHP


In PHP the strtoupper() function is used to converts a string to uppercase.

Syntax

strtoupper(string)

Example

<!DOCTYPE html>
<html>
<body>
<?php echo strtoupper("students tutorial!"); ?>
</body>
</html>

Output

STUDENTS TUTORIAL!

Example 1

<!DOCTYPE html>
<html>
<body>
<?php echo strtoupper("WeLcoMe TO Students Tutorial!"); ?>
</body>
</html>

Output

WELCOME TO STUDENTS TUTORIAL!



.