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
|
edit
A string or a variable that contains one. |
|
count
number,
required
|
edit
The number of times to repeat the string. |
Examples
editwriteDump(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 open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)