array_search in PHP

Syntax of array_search mixed array_search(mixed value, array array[, bool strict]) Performs a search for a value in an array, as with in_array(). If the value is found, the key of the matching element is returned; NULL is returned if the value is not found. If strict is specified and is true, a matched element is … Read more