How to repeat a string in ColdFusion

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>






More ColdFusion examples