Lucee Function Reference

arrayresize()

Resets an array to a specified minimum number of elements.
This can improve performance, if used to size an array to its
expected maximum. For more than 500 elements, use ArrayResize
immediately after using the ArrayNew tag.

Example

arrayresize(array array,number minimum_size):boolean

Category

array

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
array array  Yes Name of an array  
minimum_size number  Yes minimum size of the array