type required default (none - must be set)Which kind of sequence to build. One of num, string, or day. An empty or unknown value produces an empty result.
min required default (none - must be set)Start of the range. For num a non-negative whole number; for string the first character (PHP range, e.g. A); for day a date as a Unix timestamp or a strtotime string such as 2022-06-30 or today.
max required default (none - must be set)End of the range (inclusive). Same formats as min. If max is below min the sequence counts down automatically.
step optional default 1For num only: the gap between values. Taken as its absolute whole-number value; 0, empty, or non-numeric all mean 1. Ignored by string and day (which always move one unit per item).
delimiter optional default jsonHow to join the values. Omit it (or leave empty) to get a JSON array. Any other text - a comma, a dash, a space - is used as the separator in a plain joined string.
{options:{sequence:num:2024:2020}:Year}
{sequence:day:2022-06-29:2022-07-01:: }
{sequence:num:1:5}
{sequence:num:1:5::-}
{sequence:num:1:10:3:,}
{sequence:num:5:1::-}
{sequence:string:A:E}
{sequence:string:A:E::|}
{sequence:num:1:4:0:-}
[{sequence:num:-2:3}]
{foreach:{sequence:num:1:3:1:-}:[_#1]}