Returns string with reversed order of characters.
Reverse(string)
Parameter |
Description |
---|---|
string |
String to reverse |
<!--- 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>