title: how to get one specific entry in multi dimensional array
body: <p>this is the print_r of my array</p>
  
  <pre><code>    Array ( 
      [0] =&gt; Array ( [displayorder] =&gt; 3 [menuname] =&gt; Accounting Module [menuurl] =&gt; [menuflag] =&gt; 1 [menuid] =&gt; 3 ) 
      [1] =&gt; Array ( [displayorder] =&gt; 4 [menuname] =&gt; My Profile [menuurl] =&gt; myprofile.php [menuflag] =&gt; 0 [menuid] =&gt; 4 ) 
      [2] =&gt; Array ( [displayorder] =&gt; 6 [menuname] =&gt; HR Module [menuurl] =&gt; [menuflag] =&gt; 1 [menuid] =&gt; 2 ) 
      [3] =&gt; Array ( [displayorder] =&gt; 9 [menuname] =&gt; Administrator [menuurl] =&gt; [menuflag] =&gt; 1 [menuid] =&gt; 1 ) )
  </code></pre>
  
  <p>I want to make a condition that when i have a <code>menuid</code> input it will get the <code>menuname</code> of the array of the <code>menuid</code> </p>
  
  <p>found this solution:</p>
  
  <p><code>$myarray[0]['menuname'];</code> from <a href="https://stackoverflow.com/questions/4383914/how-to-get-single-value-from-php-array">here</a></p>
  
  <p>but it only gets the <code>menuname</code> of the first array how can you make it dynamic?</p>