How to reverse an array in Coldfusion?
<cfscript>
myArray1 = [67,12,45,98];
writeOutput("Before reverse : ");
writeDump(myArray1);
myArray2 = reReplace( serializeJSON( myArray1[::-1] ), "\[|\]", "", "ALL" );
myArray1 = listToArray( myArray2, ",", false, true );
writeOutput("After reverse : ");
writeDump(myArray1);
</cfscript>
Output :