RepeatString()
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
|
A string or a variable that contains one. |
count
number,
required
|
The number of times to repeat the string. |
Examples
writeDump(repeatString("Hi buddy!, Have a nice day.",2));
//Member function
str="I love Lucee ";
writeDump(str.repeatString(3));
See also
- Strings
- string.repeatString()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)