Skip to content

str_repeat

Repeats the given value n times.

Basic usage

{"hi"|str_repeat:2} # renders: hihi

Parameters

Parameter Type Required Description
1 int yes number of repetitions