ibexa

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

explode

Summary

Splits the input array and returns it as an array of sub-arrays.

Usage

input|explode( offset )

Parameters

NameTypeDescriptionRequired
offset integer The offset where the array should be split. Yes.

Returns

An array containing the original array as two arrays.

Description

This operator splits the input array at an offset specified by the "offset" parameter. The operator will return an array containing the two arrays.

Examples

Example 1

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

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

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

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


Comments

There are no comments.