Built-in Functions → repeat
repeat() is a string function that returns a string that is a repeat of its argument.
Signature
repeat(string value, int count)
The following table illustrates the repeat() parameters:
| Parameter | Description | 
|---|---|
| string value | stringto repeat | 
| int count | intnumber of times to repeat the 'string value' | 
Returns
string
Example
Repeat the expression "ha" 3 times.
repeat('ha', 3)
will result in 'hahaha'.