Re: Re: Matching *exact* string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* and then Greg Donald declared....
> On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson <nick@xxxxxxxxxxxxxx> 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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux