string_repeat

Returns a copy of a given string repeated a given number of times.

Syntax:

string_repeat(str, count);


Argument Description
str The string to repeat.
count The number of times to repeat the string.


Returns: String


Description

This function simply returns the same string repeated a given number of times over itself.


Example:

str1 = 'Hello World';
str2 = string_repeat(str1, 3);

This will set str2 to 'Hello WorldHello WorldHello World'.


Back: Strings
Next: string_replace
© Copyright YoYo Games Ltd. 2018 All Rights Reserved