arrayInsertAt

Overview ColdFusion Open BlueDragon Lucee

Inserts a value at the specified position in the array. If the element is inserted before the end of the array, ColdFusion shifts the positions of all elements with a higher index to make room.

Attributes

Name Required Type Default Description
arg3 No
array Yes Array The array which will have the new element inserted.
position Yes Numeric The numerical index in the array where the new element will be inserted. Must be less than or equal to the length of the array. Remember ColdFusion arrays start at 1 not 0.
3
value Yes Any The new element to insert.