Lucee Function Reference
arraynew()
create a new array
Example
arraynew([number dimension,[string type,[boolean synchronized]]]):array
Category
array
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
dimension | number | No | 1 | Number of dimensions in new array: 1, 2, or 3 |
type | string | No |
Type of the elements that the array can store. If set, attempting to add an element that can not be cast to the specified type, will throw an exception. |
|
synchronized | boolean | No | true | is the array synchronized or not |