ibexa

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

extract_left

Summary

Returns a portion of the start of the input array.

Usage

input|extract_left( length )

Parameters

NameTypeDescriptionRequired
length integer The number of elements that should be extracted. Yes.

Returns

An array containig the extracted elements.

Description

This operator extracts a portion from the start of the input array. The "length" parameter must be used to specify the number of elements that should be extracted.

Examples

Example 1

{array( 1, 2, 3, 4, 5, 6, 7 )|extract_left( 3 )}

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

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

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


Comments

There are no comments.