❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$collection->indexOf($needle)
Tries to find the index number for the given element
$needle
(mixed)
the element to search for
return
(mixed)
the name of the key or false
↑
Toolkit API overview
←
$collection->has($key)
→
$collection->key()
↓
Back to Toolkit API section
Top