%stringRepeat()

Aliases%stringRepeat()
Parametersstring @text, integer @repeat

    This function will return a string consisting of the given string repeated
the given number of times. A maximum size of 1000000 bytes is allowed and
if the exceeded or the repeat is less than 0, then null is returned. If
the repeat is 0 or the string is empty, and empty string will be returned.

Example:

echo String: [%stringRepeat( "*--*", 6 )]
echo String: [%stringRepeat( "*--*", 0 )]
echo String: [%stringRepeat( "*--*", 1000000 )]
echo String: [%stringRepeat( "*--*", -1 )]

Output:

String: [*--**--**--**--**--**--*]
String: []
String: []
String: []