$productList->indexOf()
Tries to find the index number for the given element
$productList->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\ProductList inherited from Kirby\Toolkit\Iterator