input|implode( separator )
Name | Type | Description | Required |
---|---|---|---|
separator | string | The string that should be inserted between the elements. | Yes. |
This operator returns a string representation of the elements of the input array. Each element will be separated by the string specified using the "separator" parameter.
{array( 1, 2, 3, 4, 5, 6, 7 )|implode( ', ' )}
The following string will be returned: "1, 2, 3, 4, 5, 6, 7".
{array( 1, 2, 3, 4, 5, 6, 7 )|implode( '_-_' )}
The following string will be returned: "1_-_2_-_3_-_4_-_5_-_6_-_7".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.