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

String string
Required

A string or a variable that contains one

Examples
Sample code invoking the reverse function

reverse('Hello World')

Expected Result: dlroW olleH

reverse(123456789)

Expected Result: 987654321

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub