TPLix

No results for ""

Str Repeat

2 min read Jun 2, 2026
--- title: str_repeat autoseo: enabled: true theme: learn2 child_type: default admin: children_display_order: collection visible: true ---

str_repeat — Repeats the given value n times.

Basic Usage:
{"hi"|str_repeat}
Parameters:
Parameter Type Required Description
1 int No number of repetitions (Default 2)

Where the template is:

{$myVars|str_repeat} # renders: as per abc variable value
{"hi"|str_repeat} # renders: hihi
{"hi"|str_repeat:5} # renders: hihihihihi

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.