how to use foreach loop in order to get only one type of elements?
<p>Does anyone know how to use FOREACH loop to get only all colors or only all fruits?</p>

<pre><code>$article = array(
  array( 'color'=&gt;'green','fruit'=&gt;'apples'),
  array( 'color'=&gt;'orange','fruit'=&gt;'oranges '),
  array( 'color'=&gt;'red','fruit'=&gt;'cherry')
);
</code></pre>

<p>Thanks in advance!</p>
