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.

reverse

Summary

Returns a reversed version of the input array.

Usage

input|reverse()

Returns

A reversed version of the input array.

Description

This operator returns a reversed version (elements in reverse order) of the input array.

Examples

Example 1

{array( 1, 2, 3, 4 )|reverse}

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

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

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


Comments

There are no comments.