php - Finding a value within an array of arrays?
one text
Solution:
Unless you want to change the data structure you're using to store this information I don't think there is a better way to check for an individual string than looping through each array and using in_array for each one.
Remember an array is an object in memory. The outer array is storing pointers to each of the arrays inside it, it does not have direct access to their contents.
Source