title: select data from a php multidimensional array
body: <p>I have a multidimensional array as follows:</p>
  
  <pre><code>$a = array (
     #id           num  name      full name
      0 =&gt; array ( 65, 'name-1', 'Name One' ),
      1 =&gt; array ( 76, 'name-2', 'Name Two' ),
      2 =&gt; array ( 82, 'name-3', 'Name Three' )
  );
  </code></pre>
  
  <p>Now, if I want to select <code>'name-1'</code> (name) I use <code>$a[0][1]</code> and to select <code>'Name Three'</code> (full name) I use <code>$a[2][2]</code>.</p>
  
  <p>So, I can select the number, the name or the full name if I have the id in the array.</p>
  
  <p>But what if I have the number or the name and I want to select the full name? how could I get it?</p>
  
  <p>Thanks.</p>