RepeatString()

edit

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

RepeatString( string=string, count=number );

Returns: String

Argument Description
string
string, required
edit

A string or a variable that contains one.

count
number, required
edit

The number of times to repeat the string.

Examples

edit
writeDump(repeatString("Hi buddy!, Have a nice day.",2));

//Member function str="I love Lucee "; writeDump(str.repeatString(3));

See also