str_repeat
Repeats a string specified number of times.
str_repeat(
str,
count
) -> STRING
Repeats a string specified number of times.
Syntaxe
var result = str_repeat("abc", 2); // Returns "abcabc"
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
str | yes | - | String to repeat | |
count | yes | - | Number of repetitions |