UCFIRST

Introduction

The UCFIRST function converts the first letter of the given text to uppercase. It accepts a single parameter for the string to be formatted.

Example

In this example, my_formatted_string calls the UCFIRST function, passing in the resource identifier my_string as its argument. Instead of a string resource identifier, you may also pass a term or variable identifier.

ESCL Input
my_string: `hello, world!`,
my_formatted_string: `{ UCFIRST(my_string) }`
ESCL Output
<!-- my_formatted_string -->
<strong>Hello, world!</strong>

Last updated