跳至内容

str_repeat

重复给定值 n 次。

基本用法

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

参数

参数 类型 必需 描述
1 int 重复次数