title: Matching one-d Array with a two-d Array
body: <p>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]...)</p>
  
  <p>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].</p>
  
  <p>Any help is appriciated!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>As per request I've exported the arrays, I don't know if that'll help, but here we go:</p>
  
  <pre><code>arrayX ( 0 =&gt; '1', 
           1 =&gt; '2'
  )
  arrayY ( 0 =&gt; array ( 0 =&gt; 'cat' ), 
           1 =&gt; array ( 0 =&gt; 'dog' )
  )
  </code></pre>
  
  <p>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.</p>