Reverse() - reverse characters in a string or digits in a number
Reverse.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Reverse function example: how to reverse characters in a string or digits in a number</title>
</head>
<body>
<h2 style="color:HotPink">Reverse Function Example</h2>
<cfset TestString="My Name Is Jones">
<cfset TestNumber="25">
<cfoutput>
<b>
TestString: #TestString#
<br />
TestString[after reverse]: #Reverse(TestString)#
<br /><br />
TestNumber: #TestNumber#
<br />
TestNumber[after reverse]: #Reverse(TestNumber)#
</b>
</cfoutput>
</body>
</html>
- Asc() - get the value of a character
- Mid() - extracts a substring from a string
- RemoveChars() - remove characters from a string
- RepeatString()
- Replace() - replace a substring in a string (case sensitive)
- ReplaceNoCase() - replace a substring in a string (case insensitive)
- Right() - get the rightmost count characters in a string
- RTrim() - remove spaces from the end of a string
- Trim() - remove leading and trailing spaces from a string
- UCase() - convert a string to uppercase