ArraySwap
Method Signature
ArraySwap(array=[array], position1=[any], position2=[any])Arguments
Argument
Type
Required
Description
Default
Examples
Swap the position of two values in an array
superiorArray = [
"Spider-Man",
"Green Goblin",
"Doctor Octopus",
"Venom"
];
arraySwap( superiorArray, 1, 3 );
writeDump( superiorArray );
Swap the position of two values in an array using the member function
Additional Examples
Related
Last updated
Was this helpful?
