input|explode( separator )
Name | Type | Description | Required |
---|---|---|---|
separator | string | Split sequence. | Yes. |
This operator takes a string as input and returns an array of strings. Each element in the array will be a part of the input string extracted on the basis of the specified sequence of split characters.
{'All-your-base-are-belong-to-us!'|explode( '-' )}
The following array will be returned: ( 'All', 'your', 'base', 'are', 'belong', 'to', 'us!' ).
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.