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
string::upper("hello")
This function is useful for standardizing string case for comparisons or consistency.