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 | string to repeat |
int count | int number of times to repeat the 'string value' |
Returns
string
Example
Repeat the expression "ha" 3 times.
repeat('ha', 3)
will result in 'hahaha'.