Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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

Balazs Halasy (05/02/2004 10:52 am)

Balazs Halasy (04/05/2005 2:37 pm)


Comments

There are no comments.