Re: Re: zend_hash_sort_ex()
| From: | Andrei Zmievski | Date: | Tue, 26 Oct 1999 20:32:04 +0000 |
| Subject: | Re: Re: zend_hash_sort_ex() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11929@lists.php.net to get a copy of this message | ||
On Tue, 26 Oct 1999, Andi Gutmans wrote:
> if "renumber" is true, you ask the hash_sort() function to sort by value
> and discard the previous keys, assigning new keys according to the new
> order. As a result of the keys changing hash_sort() calls hash_rehash()
> which assigns all of the new key/value pairs to their new bucket which is
> calculated according to the new key.
So, if the keys aren't changing then it's not necessary to call
zend_hash_rehash()?
-Andrei
* Change is the only constant. *