Description

Creates a string that contains a specified number of repetitions of the specified string.

Returns

A string.

Category

String functions

Function syntax

RepeatString(string, count)

See also

CJustifyLJustifyRJustify

Parameters

Parameter

Description

string

A string or a variable that contains one.

count

Number of repeats.

Example

<cfscript>
       myStr="Lorem Ipsum";
       WriteOutput(RepeatString(myStr,5));
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy