Package

ViewHelpers

ViewHelper Documentation

count

This ViewHelper counts elements of the specified array or countable object.

= Examples =

<f:count subject="{0:1, 1:2, 2:3, 3:4}" /> 4

{objects -> f:count()} 10 (depending on the number of items in {objects})

Arguments

subject anySimpleType, required

Countable subject, array or \Countable

ViewHelper Resources

Schema Resources