My problem is as follows, for example, I have a matrix:
ID - Name - Type
152 - item1 - type1
536 - element2 - type2
85 - element3 - type3
105 - item4 - type4
And I have a array
:
$busca = array(105,536,85);
What I need is to find the elements of array
in the first column of the matrix. I tried going through the matrix and comparing with the elements of the array
, the problem is that as the elements are disordered, only results in some, not all.
Any advice? Thank you!