to_upper
TABLE OF CONTENTS
Convert a string to uppercase
Definition
string to_upper(string $string)
Converts $string to uppercase.
Parameters
string $string
The string to convert to uppercase.
Returns
string
$string with lowercase characters replaced with uppercase.
Examples
Transformation
{
a: to_upper(`UPPERCASE`),
b: to_upper(`lowercase`),
c: to_upper(`Sentence. Case.`),
d: to_upper(`3`),
e: to_upper(`true`),
f: to_upper(`null`)
}Result
{
"a": "UPPERCASE",
"b": "LOWERCASE",
"c": "SENTENCE. CASE.",
"d": null,
"e": null,
"f": null
}Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article