str_repeat

Repeat a string

STR_REPEAT

NAME

str_repeat - Repeat a string

SYNOPSIS

str_repeat(string,multiplier,delimiter)

PARAMETERS

string
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

{{ include("includes/strings.sn") }}

AUTHOR

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

MODIFICATIONS

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

Edit

© 2024 extenso Inc. All rights reserved.