toupper

string

Converts a string to uppercase

Syntax

toupper(string)

Parameters

string (string)

The string to convert

Returns

string

String converted to uppercase

Examples

Input:
toupper("hello")
Output:
"HELLO"
Input:
toupper("Hello World")
Output:
"HELLO WORLD"
Input:
"test" | toupper
Output:
"TEST"

The toupper() function converts all characters in a string to uppercase. This is an alias for uppercase().

Usage

Use toupper() for formatting headers, creating constants, or normalizing text data for comparison.