array_unique tribulation continues

From: Date: Wed, 09 Jan 2002 14:54:31 +0000
Subject: array_unique tribulation continues
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969341008@lists.php.net to get a copy of this message
You are right. The examples works as expected with PHP 4.1.1 - Apache 1.3.9 (DSO) on Debian. array_unique() does preserve the *first* key of every related value. However, it doesn't seem to work under Win9x, see the following example: Array // original ( [2] => 4 [4] => 4 [8] => 3 [9] => 4 [5] => 3 [7] => 3 ) Array // array_unique()'d ( [9] => 4 [5] => 3 ) I suggest to you reverting the array_unique section what you find in rev 1.148 and put a warning about this incompatibilty. I'll update my bug report (#14805), too. Gyozo Papp - gerzson@php.net

« previous php.doc (#969341008) next »