input|explode( offset )
Name | Type | Description | Required |
---|---|---|---|
offset | integer | The offset where the array should be split. | Yes. |
This operator splits the input array at an offset specified by the "offset" parameter. The operator will return an array containing the two arrays.
{array( 1, 2, 3, 4, 5 )|explode( 3 )}
The following array will be returned: ( ( 1, 2, 3 ), ( 4, 5 ) ).
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.