concat

Summary

Merges several strings into one string.

Usage

concat( value1, value2 [,...] )

Parameters

NameTypeDescriptionRequired
value1 mixed A string that should be added. Yes.
value2 mixed Another string that should be added. Yes.

Returns

A string consisting of all the parameters.

Description

This operator merges several strings into one and returns the resulting string.

Examples

Example 1

{concat( 'what', 'ever' )}

The following output will be produced: "whatever".

Example 2

{def $number=256}
{concat( 'The number is: ', $number, '!' )}

The following output will be produced: "The number is: 256!"

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