PHP String Functions

strtoupper() Function

Definition and Usage

The strtoupper() function converts a string to uppercase.


Syntax

strtoupper(string)


Parameter Description
string Required. Specifies the string to reverse

Example

Convert all characters to uppercase:

<?php
echo strtoupper("Hello WORLD!");
?>

Run Example>>