# [RESOLVED] Re:  What's wrong with these hashtable iteration code?

- Thread: https://externals.io/message/75735
- Original archive: https://news-web.php.net/php.internals/75735
- Started by Aaron Lewis on 2014-07-21T03:23:48+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #75735 — Aaron Lewis — 2014-07-21T03:23:48+00:00

URL: https://externals.io/message/75735#75735

Thanks! It worked

On Mon, Jul 21, 2014 at 11:20 AM, Tjerk Meesters
<tjerk.meesters@gmail.com> wrote:
>
>
>
> On Mon, Jul 21, 2014 at 11:12 AM, Aaron Lewis <the.warl0ck.1989@gmail.com>
> wrote:
> > […]
>
>
> The _ex() hash iteration functions allow for iterating a hash without
> modifying its internal pointer, but zend_hash_get_current_key() uses only
> the internal pointer.
>
> The function you need to use is: zend_hash_get_current_key_ex() and pass
> &pos to it.
>
>
> > […]
>
>
>
> --
> --
> Tjerk



-- 
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
