repeat
Twig filter
| Defined in |
/modules/core/classes/core_twigextension.php, lines 233-233 |
| Author |
LemonStand eCommerce Inc. |
string function repeat(string $str, integer $count)
| $str |
string |
specifies a string to repeat |
| $count |
integer |
specifies the number of times the string should be repeated. |
| {return} |
string |
returns the processed string. |
Returns a string repeated multiple times.
This Twig filter is an equivalent of PHP str_repeat() function.
Example:
|