Posted by Taras_96 on 05/16/07 11:01
Hi everyone,
I'm wondering if anyone knows whether PHP does some indexing behind
the scenes to make array searches faster.
What I have is an array of around 100 000 elements, and I have a list
of 1000 given element which I need to see whether they contained in
the array. This means 1000 searches on an array of size 100 000. I'm
hoping that PHP indexes it's keys using a binary tree or
something.. :)
Thanks
Taras
[Back to original message]
|