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 ).

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