count ViewHelper <f:count>
¶
This ViewHelper counts elements of the specified array or countable object.
Examples¶
Count array elements¶
<f:count subject="{0:1, 1:2, 2:3, 3:4}" />
Copied!
Output:
4
Copied!
inline notation¶
{objects -> f:count()}
Copied!
Output:
10 (depending on the number of items in ``{objects}``)
Copied!
Arguments¶
subject¶
- DataType
- mixed
- Required
- false
- Description
- Countable subject, array or Countable