# hash table question

- Thread: https://externals.io/message/3879
- Original archive: https://news-web.php.net/php.internals/3879
- Started by Ard Biesheuvel on 2003-08-13T15:15:25+00:00
- Messages: 2
- 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

---

## #3879 — Ard Biesheuvel — 2003-08-13T15:15:25+00:00

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

For my upcoming improvement of interbase.c, which features asynchronous
handling of events posted in the database, I need to maintain a per-link
list
of event names (string) and callbacks (zval).

Would using zend_hash tables be the right way to do this ?

Ard

---

## #3897 — Zeev Suraski — 2003-08-13T19:39:32+00:00

URL: https://externals.io/message/3879#3897 · In reply to: #3879

At 18:15 13/08/2003, Ard Biesheuvel wrote:
>For my upcoming improvement of interbase.c, which features asynchronous
>handling of events posted in the database, I need to maintain a per-link
>list
>of event names (string) and callbacks (zval).
>
>Would using zend_hash tables be the right way to do this ?

If you just need a list, you can also use zend_llist.  If you need more 
than just a simple linked list, go for a hash.

Zeev
