Just wondering if there's some sort of structure (like hashes) to speed lookups, or if it's a key-by-key read. I've found I'm using in_array several times on the same array and am wondering if converting it to an associative array (or something else) would make lookups faster.
Hi, i don't think if you loop through an array that it will be faster. I think the speed is the same.
Greetings juggler
Yes, it will IF the array is large in size. If you are dealing with an array that has 20 values in it, you probably won't notice any difference. If you have 20,000 values in the array, then YES, there will be a huge difference.
-Josh B