Re: Re: zend_hash_sort_ex()
| From: | Andi Gutmans | Date: | Wed, 27 Oct 1999 04:48:23 +0000 |
| Subject: | Re: Re: zend_hash_sort_ex() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11932@lists.php.net to get a copy of this message | ||
At 03:32 PM 10/26/99 -0500, Andrei Zmievski wrote:
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()?Nope. (ou'd pass renumber=0 to zend_hash_sort()) Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/