array_search - add max hit option