Display array values not repeadly
<p>I have the following array</p>

<pre><code>$ar = array ( 1,2,3,4,5,3,6,7,...)
</code></pre>

<p>i do a foreach to display elements like</p>

<pre><code>$i = 0
foreach ($ar as $tab){

echo $tab[i];

$i++
}
</code></pre>

<p>I dont want to display twice the same value like 3.
i just want <code>1 2 3 4 5 6 7...</code></p>
