Merx

$cart->indexOf()

Tries to find the index number for the given element

$cart->indexOf( $needle): int|false

Parameters

Name Type Default Description
$needle mixed -

the element to search for

Return type

int or false

the index (int) of the element or false

Parent class

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