upfirst

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!".

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.