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

This document is based on eZ Publish Documentation. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License.