to_upper

Modified on Thu, 9 Jul at 10:49 AM

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article