| CFML Reference
|
|
ColdFusion Functions
|
Reverse
Description
Returns string with reversed order of characters.
Category
String functions
Syntax
Reverse(string)
See also
Left, Mid, Right
Parameters
| Parameter |
Description |
string
|
String to reverse
|
Example <!--- 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>
|
Copyright © 2001, Macromedia Inc. All rights reserved. |
|
|