title: array_filter and multidimensional array
body: <p>Say I have an array such as:</p>
  
  <pre><code>$arr[] = array("id" =&gt; 11, "name" =&gt; "First");
  $arr[] = array("id" =&gt; 52, "name" =&gt; "Second");
  $arr[] = array("id" =&gt; 6, "name" =&gt; "Third");
  $arr[] = array("id" =&gt; 43, "name" =&gt; "Fourth");
  </code></pre>
  
  <p>I would like to get the name correspondent to a certain ID so that I can do:</p>
  
  <pre><code>$name = findNameFromID(43);
  </code></pre>
  
  <p>and get, for instance, "Fourth".</p>
  
  <p>I thought of using <code>array_filter</code> but I am a bit stuck on how to correctly pass a variable. I have seen questions such as <a href="https://stackoverflow.com/questions/5482989/php-array-filter-with-arguments">this one</a> but I don't seem to be able to extend the solution to a multidimensional array.</p>
  
  <p>Any help?</p>