input|append( element1 [, element2 [, ... ] ] )
Name | Type | Description | Required |
---|---|---|---|
element1 | any | Element to be appended to the input array. | Yes. |
element2 | any | Another element to be appended to the input array. | No. |
This operator appends the parameter value(s) at the end of the input array and returns the resulting array.
{array( 1, 2, 3 )|append( 4, 5, 6 )}
The following array will be returned: ( 1, 2, 3, 4, 5, 6 ).
{array( 1, 2, 3 )|append( array( 4, 5, 6 ))}
The following array will be returned: ( 1, 2, 3, ( 4, 5, 6 ) ).
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.