So the docs are right?
Note that keys are preserved. array_unique() sorts the values treated as
string at first, then will keep the first key encountered for every value,
and ignore all following keys. It does not mean that the key of the first
related value from the unsorted array will be kept.
On Tue, Sep 03, 2002 at 11:21:12AM +0300, Andrey Hristov wrote:
So the docs are right?
Note that keys are preserved. array_unique() sorts the values treated as
string at first, then will keep the first key encountered for every value,
and ignore all following keys. It does not mean that the
- Original Message -
From: Stig Venaas [EMAIL PROTECTED]
To: Andrey Hristov [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 11:43 AM
Subject: Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] array_unique
broken
On Tue, Sep 03, 2002 at 11:47:58AM +0300, Andrey Hristov wrote:
IMO that's good idea to have keys ordered too. All my nightmares with
array_diff() came from that
the key order is undefined and I tried all kind of tricks (traversing like
in a marathon forward and backwards to
find are there
- Original Message -
From: Stig Venaas [EMAIL PROTECTED]
To: Andrey Hristov [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 11:53 AM
Subject: Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] array_unique
broken?
On Tue, Sep 03, 2002 at 11:47:58AM +0300