Site Tools


repeat_function

Table of Contents

Synopsis:

$repeat(<count> <text>)

  • This function returns <count> instances of <text> joined without a separator.
  • <count> must be >= 1
  • The return string is truncated to 1MB to avoid shooting yourself in the foot.
  • The <text> must NOT be surrounded by double quotes. If you need to repeat the space, use $repeat(<count><space><space>)

Returns:

input string repeated count times

Examples:

$repeat(5 hello)                   returns "hellohellohellohellohello"
$repeat(5  )                       returns "     "  (spaces)
repeat_function.txt · Last modified: 2015/06/04 22:19 by 127.0.0.1