Quote:
Originally Posted by kh99
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.
|
I think you're talking about array_search which returns the key