Definition
The strtoupper() function is used to convert a string to uppercase.
Syntax
strtoupper(string)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to convert. |
Example
<?php
echo strtoupper("Welcome to PHP!");