DISTINCT for foreach
<pre><code>&lt;?php

$array = array('aaa', 'bbb', 'aaa', 'ccc', 'ddd', 'ccc', 'eee');

foreach($array as $a){
   echo $a;
}
</code></pre>

<p>Is possible use some like DISTINCT for foreach? I would like show each values only one, without repeat. How is the best way for this?</p>

<p><a href="http://codepad.org/FZQNEBeK" rel="nofollow">http://codepad.org/FZQNEBeK</a></p>
