On Tue, April 10, 2007 5:39 pm, Paul Novitski wrote:
> values.  If both keys and values are unique, I'd consider (if only
> briefly) maintaining two arrays, one a flipped version of the other,
> so I could look up key/value pairs using either node.

I do this all the time for small/medium arrays.

You'd want to avoid it, maybe for monster arrays...

But you rarely have unique keys + values if the arrays are all that
large anyway, in Real Life.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to