RE: [PHP] array_unique wierdness

2003-04-05 Thread John W. Holmes
; From: Greg Robillard [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 05, 2003 10:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP] array_unique wierdness > > I would like to remove duplicate array values, and I > presume that array_unique should do this, but the > results

[PHP] array_unique wierdness -addendum

2003-04-05 Thread Greg Robillard
Oh yeah - I'm using Version 4.2.3 on Linux __ 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

[PHP] array_unique wierdness

2003-04-05 Thread Greg Robillard
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