Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP strtoupper() Function

PHP strtoupper() Function

PHP String Reference Manual PHP String Reference Manual

Example

Convert all characters to uppercase:

Run Example »


Definition and Usage

The strtoupper() function converts a string to uppercase.

**Note:** This function is binary-safe.

Related functions:


Syntax

strtoupper(

string

)

Parameters Description
string Required. Specifies the string to convert.

Technical Details

Return Value: Returns the string converted to uppercase.
PHP Version: 4+

PHP String Reference Manual PHP String Reference Manual