oh.. are you asking for array in php?
if not try this logic
Quote:
newarray = array();
for(i=0;i<lengthofarray;i++){
currentval = array[i];
if(!in_array(currentval,newarray)) //test if current value not already in newarray variable
newarray[] = currentval;
}