array( element1 [, element2 [, ... ] ] )
Name | Type | Description | Required |
---|---|---|---|
element1 | any | Element / value of any kind. | Yes. |
element2 | any | Another element / value of any kind. | No. |
This operator builds an array using the specified elements. The elements must be passed as parameters. The operator returns the resulting array.
{array( 1, 2, 3, 4, 5, 6, 7 )}
The following array will be returned: ( 1, 2, 3, 4, 5, 6, 7 ).
{array( 1, 2, 3, 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.