title: php Checking if value exists in array of array
body: <p>I have an array within an array.</p>
  
  <pre><code>$a = array ( 0 =&gt; array ( 'value' =&gt; 'America', ), 1 =&gt; array ( 'value' =&gt; 'England', ), )
  </code></pre>
  
  <p>How do I check if 'America' exists in the array? The America array could be any key, and there could be any number of subarrays, so a generalized solution please.</p>
  
  <p>Looking on the php manual I see in_array, but that only works for the top layer. so something like <code>in_array("America", $a)</code> would not work.</p>
  
  <p>Thanks.</p>