Latest web development tutorials
 

PHP strtoupper() Function

< PHP String Reference

Example

Convert all characters to uppercase:

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

Definition and Usage

The strtoupper() function converts a string to uppercase.

Note: This function is binary-safe.

Related functions:


Syntax

strtoupper(string)

Parameter Description
string Required. Specifies the string to convert

Technical Details

Return Value: Returns the the uppercased string
PHP Version: 4+

< PHP String Reference