i have an array $value=array (2,4,6,3,2,4,3,8);
and i need only the values thar are repeating it self in the array
that would be
2,4,3
i have this code written
<?php
$value=array (2,4,6,3,2,4,3,8);
$arrlength = count($value);
for($x=0; $x<$arrlength; $x++){
$value[$x];
for($y=0; $y<$arrlength; $y++){
$value[$y];
if($value[$x]==$value[$y] ){
echo $value[$y];
}
}
echo "<br/>";
}
?>