/ /

XtScript Function: str_repeat

Repeat a string certain times.

str_repeat is an XtScript function that will process a string and repeat it based on the given multiplier argument and return the result.

XtScript str_repeat function basic syntax:

<!--parser:xtscript-->
	call str_repeat $val=...; $multiplier=...
<!--/parser:xtscript-->

Learn XtScript str_repeat function from examples

Repeat a string certain times using XtScript str_repeat function.

- Code:
<!--parser:xtscript-->
	var $string = Hello
	var $mult = 10

	var $mult_string = call str_repeat $val=$string; $multiplier=$mult

	print String: $string <br/>
	print Multiplied: $mult_string
<!--/parser:xtscript-->
- Result:
String: Hello
Multiplied: HelloHelloHelloHelloHelloHelloHelloHelloHelloHello

Insane