Skip to the content
Documentation

upfirst

No ratings yet

Summary

Returns the input string with a capitalized initial letter.

Usage

input|upfirst()

Returns

The input string with a capitalized initial letter.

Description

This operator converts the first character of the input string to a capital letter. The resulting string is returned.

Examples

Example 1
{'good bye!'|upfirst()}

The following string will be returned: "Good bye!".

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.