Display array values not repeadly

aorjung

New Member
I have the following array\[code\]$ar = array ( 1,2,3,4,5,3,6,7,...)\[/code\]i do a foreach to display elements like\[code\]$i = 0foreach ($ar as $tab){echo $tab;$i++}\[/code\]I dont want to display twice the same value like 3.i just want \[code\]1 2 3 4 5 6 7...\[/code\]
 
Back
Top