array.swap()

Swaps array values of an array at specified positions. This function is more efficient than multiple cfset tags

array.swap( array, position1, position2 )

Returns: Boolean

Argument Description
array
array, required

Array to Swap

position1
number, required

Position of first element to swap

position2
number, required

Position of second element to swap

Examples

There are currently no examples for this function

See also