Reverse()
Reverses the order of items, such as the characters in a string, the digits in a number, or the elements in an array.
Reverse( string=string );
Returns: String
Examples
writeDump(
label: "Reverse a string",
var: reverse("abcd")
);
writeDump(
label: "Reverse empty value",
var: reverse("")
);
See also
- Strings
- string.reverse()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)