This function simply returns the same string repeated a given number of times over itself.
string_repeat(str, count);
Argument | Type | Description |
---|---|---|
str | String | The string to repeat. |
count | Real | The number of times to repeat the string. |
str1 = "Hello World";
str2 = string_repeat(str1, 3);
The above code will set str2 to "Hello WorldHello WorldHello World".