There is an array that contains arrays. In php, is there a function that searches in arrays of the second level (in arrays that are contained in the array) value and returns the number of occurrences of the desired element, as well as the index of the array of the first level (which contains arrays in which you need to look for something)?

I look at php.net, but have not yet noticed.

  • 3
    There are no such functions in php. Write your own. - u_mulder
  • Yes. there are no such. It is necessary for developers to inform them in php 10 to include such feature% :)). I will write my own, approximate algorithm is already clear from the question itself. - root_x Povierennyy

0