❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$collection->count()
Counts all elements in the array
return
(int)
Examples:
This collection has <?= $collection->count() ?> items
↑
Toolkit API overview
←
$collection->chunk($size)
→
$collection->current()
↓
Back to Toolkit API section
Top