Merx

$cart->keyOf()

Tries to find the key for the given element

$cart->keyOf( $needle): int|string|false

Parameters

Name Type Default Description
$needle mixed -

the element to search for

Return type

int or string or false

the name of the key or false

Parent class

Wagnerwagner\Merx\Cart inherited from Kirby\Toolkit\Iterator