🎉 If you are still on v2, we offer attractive prices for all owners of a Kirby 2 license to upgrade to v3.
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