OK, I have two arrays, one populated from a query, $listarray, and the other passed to the function from another script, $additionaloptions.
What I want to do is move through the $additionaloptions array, and if the item doesn't match any item in the $list array, push that item onto the $list array.
Does this make sense?
I've tried the following, but it keeps crashing.
if (!empty($additionaloptions))
{
foreach ($additionaloptions as $extra)
{
foreach ($listarray as $dbitem)
{
if ($extra == $dbitem)
{
continue;
}
else
{
array_push ($listarray, $extra);
}
}
}
}