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:

ParameterDescription
string valuestring to repeat
int countint number of times to repeat the 'string value'

Returns

string

Example

Repeat the expression "ha" 3 times.

repeat('ha', 3)

will result in 'hahaha'.