Re: Re: Matching *exact* string?

From: Date: Sun, 31 Oct 2004 17:30:59 +0000
Subject: Re: Re: Matching *exact* string?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-200771@lists.php.net to get a copy of this message
* and then Greg Donald declared.... > On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson <nick@stylesheet.org> wrote: > > I think in_array() sounds like a great solution, wonder if it's faster > > than comparing each ooe with == ? thanks! > > Benchmark it both ways and find out. Then post back and tell us. :) Started to, but found I cant ;( I need to get the key from the array also (for use in a corresponding array) and with in_array() I couldnt find a way to do it. So, im just using == which is lightning fast anyway so no worries :) thanks again.. -- Nick W

« previous php.general (#200771) next »