Predefined function reference

list_get_index_of

A reference entry for list_get_index_of

Predefined function · list

list_get_index_of (list l, mixed element) ⇒ integer

From the list, l, obtains the index of an element, element.

Alternative function names: list_index_of

Notes

This function will return -1 if the searched element is not found.