title: Search a value in two dimension arrays
body: <p>I have many arrays like this:</p>
  
  <pre><code>Array ( 
    [1] =&gt; Array ( [Field] =&gt; column1 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; PRI ) 
    [2] =&gt; Array ( [Field] =&gt; column2 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; ) 
    [3] =&gt; Array ( [Field] =&gt; column3 [Type] =&gt; timestamp [PrimaryKey] =&gt; ) 
    [4] =&gt; Array ( [Field] =&gt; column4 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; ) 
    [5] =&gt; Array ( [Field] =&gt; column5 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; ) 
    [6] =&gt; Array ( [Field] =&gt; column6 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; ) 
    [7] =&gt; Array ( [Field] =&gt; column7 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; ) 
    [8] =&gt; Array ( [Field] =&gt; column8 [Type] =&gt; timestamp [PrimaryKey] =&gt; ) 
    [9] =&gt; Array ( [Field] =&gt; column9 [Type] =&gt; varchar(50) [PrimaryKey] =&gt; ) 
  ) 
  </code></pre>
  
  <p>I want to know if any array contains a sub-array with Field=column1. What is the shortest way to check this in each array.</p>
  
  <p>When I use loops and nested loops, it takes so much time and finally shows a memory exhausted error.</p>
  
  <p>Thanks. </p>