Greetings There was a problem. There is an array of array ()[0] => 123 [1] => orange [2] => apple [3] ...
и в нем например 50000 значений. Нужно найти в нем значение Apple и вернуть его ключ. Do functions like in_array just return the key? I tried the array_search function but it passes as I understand it through the entire array and takes a lot of time, and in_array as I understand it checks and takes much less time. So how to do what Apple would find and return its key?