cfdocs

reverse

Reverses the order of items, such as the characters in a string and the digits in a number

reverse(String)
returns string

Argument Reference

Name Type Required Default Description
String string Yes   A string or a variable that contains one

Reverse a string

reverse('Hello World')

Expected Result: dlroW olleH

Reverse a number

reverse(123456789)

Expected Result: 987654321