Quote:
Originally Posted by vBNinja
What about in_array() ?
|
Yeah, but then you'd still have to get the key (since that's what the function returns). There is a function whose name I can't remember that searches an array and returns the key. But I was under the impression that using a key to access an array was fast (like it was a hash table or something), so if that's true then it would be faster to reverse them.