RepeatString() function
RepeatString.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RepeatString function example: how to use RepeatString function</title>
</head>
<body>
<h2 style="color:HotPink">RepeatString Function Example</h2>
<cfset TestString="Test RepeatString function.">
<cfoutput>
<b>
TestString: #TestString#
<br />
#RepeatString("-",15)#
<br />
TestString[after repeat string 2 times]: #RepeatString(TestString,2)#
</b>
</cfoutput>
</body>
</html>
- Asc() - get the value of a character
- Compare() - compare two strings (case sensitive)
- CompareNoCase() - compare two strings (case insensitive)
- Find() - find the first occurence of a substring in a string (case sensitive)
- FindNoCase() - find the first occurence of a substring in a string (case insensitive)
- Mid() - extracts a substring from a string
- RemoveChars() - remove characters from a string
- Replace() - replace a substring in a string (case sensitive)
- Trim() - remove leading and trailing spaces from a string
- UCase() - convert a string to uppercase