function

str_repeat . string . sncode

VERSIONlatest Repeat a string

STR_REPEAT(1e)

NAME

str_repeat - Repeat a string

SYNOPSIS

str_repeat(str,multiplier,delimiter)

PARAMETERS

str
The input string.
multiplier
Number of time the input string should be repeated. If the multiplier is set to 0, the function will return an empty string.
delimiter
Delimiter inserted between all strs.

RETURN

Returns the repeated string.

EXAMPLES

in:  res=<{str_repeat("-=",5)}>.
out: res=-=-=-=-=-=.

in:  res=<{str_repeat("-=",5,"!")}>.
out: res=-=!-=!-=!-=!-=.

AUTHOR

Written by Pusnei Sergey, <sergey@sednove.com>