I' using array search to search through an array (funny that! :rolleyes: ) in the following format
<?
if(!array_search($result[$i]['jewellery_material'],$materials)) {
$materials[]=$result[$i]['jewellery_material'];
}
?>
Now I'm thinking this should only insert into $materials if the element in $result[$i]['jewellery_material'] is not there already, right?
If this is the case, then why am I getting duplicate results in the array?
Thank you in advance
Rob