I am using the following loop to add items to an an array of mine called $liste. I would like to know if it is possible somehow not to add $value to the $liste array if the
maybe you want to use it as an associative array instead. it's
implemented as (something like) a hash table, so you
get constant insert time instead of linear.
function find_uniq( $something ) {
foreach($something as $value){
$liste[$value]++;
}
return array_keys( $liste );
}