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