Range ViewHelper <f:range>
The RangeViewHelper returns an array containing a range of integers.
This ViewHelper mimicks PHP's
range function.
The following examples store the result in a variable because an array cannot be outputted directly in a template.
Go to the source code of this ViewHelper: RangeViewHelper.php (GitHub).
Arguments of the <f:range> ViewHelper
end
-
- Type
- integer
- Required
- 1
Last possible value of the sequence.
start
-
- Type
- integer
- Required
- 1
First value of the sequence.
step
-
- Type
- integer
- Default
- 1
indicates by how much the produced sequence is progressed between values of the sequence.