ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

prepend

Summary

Returns the input array prepended with specified elements.

Usage

input|prepend( element1 [, element2 [, ... ] ] )

Parameters

NameTypeDescriptionRequired
element1 any Element to be prepended to the input array. Yes.
element2 any Another element to be prepended to the input array. No.

Returns

An array consisting of the parameters and the input array.

Description

This operator adds the parameter value(s) to the start of the input array and returns the resulting array.

Examples

Example 1

{array( 4, 5 )|prepend( 1, 2, 3 )}

The following array will be returned: ( 1, 2, 3, 4, 5 ).

Balazs Halasy (05/02/2004 9:33 am)

Balazs Halasy (04/05/2005 1:40 pm)


Comments

There are no comments.