Hi,
I'm having some problems grasping how to match a one-dimensional array with a two-dimensional array. So I have one array, a one-dimensional, that contains numbers (e.g. 1, 2, 3, 4, 5...) and one two-dimensional array that contains numbers and some text (e.g. [1][dog], [2][cat], [3][mouse]...)
So now what I want to do is to use the first array, to see if that matches the second arrays numbers, e.g. if array[0] (contains value '1') matches array2[x] then output the array2's text, array2[x][text].
Any help is appriciated!
EDIT:
As per request I've exported the arrays, I don't know if that'll help, but here we go:
arrayX ( 0 => '1',
1 => '2'
)
arrayY ( 0 => array ( 0 => 'cat' ),
1 => array ( 0 => 'dog' )
)
I suppose this'd work similar to a tag system? If arrayX contains an entry with the value '1', then compare this with arrayY and output the number-match.