Måske er det dette du har brug for:
array_unique -- Removes duplicate values from an array
Description
array array_unique (array array)
Array_unique() takes input array and returns a new array without duplicate
values. Note that keys are preserved.
Example 1. Array_unique() example
$input = array ("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique ($input);
This makes $result have array ("a" => "green", "red", "blue");.
Niels Rasmussen
"Jonas Delfs" <jonas@NOSPAMdelfs.dk> skrev i en meddelelse
news:9qslc6$grc$1@sunsite.dk...
> "Mark Andersen" <mark@b4zz.dk> wrote in message
> news:3bd1d0cb$0$723$edfadb0f@dspool01.news.tele.dk...
>
> > hvordan fjerner man en entry i en array?
>
> unset($array[6]);
>
> > jeg vil gerne ungå duplikater..
>
>
http://php.net/array_unique ?
>
> --
> Mvh./Best Regards
> Jonas Delfs,
http://delfs.dk
>
>