title: Get Specific Data From Array, Based On Another Value
body: <p>I have an array that outputs these values:</p>
  
  <pre><code>Array ( 
      [0] =&gt; stdClass Object ( 
          [ID] =&gt; 6585
          [COLOR] =&gt; red 
          [Name] =&gt; steve
          ) 
      [1] =&gt; stdClass Object ( 
          [ID] =&gt; 5476 
          [COLOR] =&gt; blue 
          [Name] =&gt; sol
          ) 
      [2] =&gt; stdClass Object ( 
          [ID] =&gt; 7564 
          [COLOR] =&gt; yellow 
          [Name] =&gt; jake 
          ) 
      [3] =&gt; stdClass Object ( 
          [ID] =&gt; 3465 
          [COLOR] =&gt; green 
          [Name] =&gt; helen 
          ) 
      )
  </code></pre>
  
  <p>Now, I will know the ID of the person, and I need the get the COLOR value for that specific value set. How is this best achieved please?</p>