I would like to remove duplicate array values, and I
presume that array_unique should do this, but the
results are not what I am expecting
Anyone see this before:
$dayarray=(9,22,22);
$duparray = array_unique($dayarray);
$darray = count($duparray);
for($d=0;$d<$darray;$d++){
  echo "$d: ".$duparray[$d]."<br>";
}
## returns:
0: 9
1: 
rather than
0: 9
1: 22

Is that what it is supposed to do? Does array_unique
remove all instances of duplicate values? 
If so, is there a way to remove every instance but the
first?
Thanks, 

gr





__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to