Skip to content

String Upper

The string::upper function converts all characters in a string to uppercase.

Syntax

string::upper(<string>)

Parameters

  • string: The input string to be converted to uppercase.

Returns

  • String: A new string with all characters in uppercase.

Example

Try it out below!
string::upper("hello")

This function is useful for standardizing string case for comparisons or consistency.