Returns string with reversed order of characters.
See also Left, Mid, and Right.
Reverse(string)
String being reversed.
<!--- This example shows the use of Reverse ---> <HTML> <HEAD> <TITLE> Reverse Example </TITLE> </HEAD> <BODY BGCOLOR=silver> <H3>Reverse Example</H3> <P>Reverse returns your string with the positions of the characters reversed. <CFIF IsDefined("FORM.myString")> <CFIF FORM.myString is not ""> <P>Reverse returned: <CFOUTPUT>#Reverse(FORM.myString)#</CFOUTPUT> <CFELSE> <P>Please enter a string to be reversed. </CFIF> </CFIF> <FORM ACTION="reverse.cfm" METHOD="POST"> <P>Enter a string to be reversed: <INPUT TYPE="Text" NAME="MyString"> <P><INPUT TYPE="Submit" NAME=""> </FORM> </BODY> </HTML>