This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

array

Summary

Creates and returns a new array.

Usage

array( element1 [, element2 [, ... ] ] )

Parameters

NameTypeDescriptionRequired
element1 any Element / value of any kind. Yes.
element2 any Another element / value of any kind. No.

Returns

An array containing the specified elements.

Description

This operator builds an array using the specified elements. The elements must be passed as parameters. The operator returns the resulting array.

Examples

Example 1

{array( 1, 2, 3, 4, 5, 6, 7 )}

The following array will be returned: ( 1, 2, 3, 4, 5, 6, 7 ).

Example 2

{array( 1, 2, 3, array( 4, 5, 6 ) )}

The following array will be returned: ( 1, 2, 3, ( 4, 5, 6 ) ).

Balazs Halasy (05/02/2004 10:26 am)

Balazs Halasy (04/05/2005 3:25 pm)


Comments

There are no comments.