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=-=!-=!-=!-=!-=.

SEE ALSO

String

AUTHOR

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

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com