Re: array_unique and some questions on Zend hash internals

From: Date: Sun, 04 Jun 2000 16:51:14 +0000
Subject: Re: array_unique and some questions on Zend hash internals
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-20192@lists.php.net to get a copy of this message
On Sun, 04 Jun 2000, Stanislav Malyshev wrote: > Yes, I think it should be array("a","b"). Though if you think there could > be a need for keys, you could make two versions - like sorts, > key-preserving and non-key-preserving. Stas, I think there is no point in preserving keys here, because you will end up with a key for only the remaining item and which item it is may be implementation dependent, i.e. first in the group, last in the group, etc. -Andrei

« previous php.dev (#20192) next »