Re: [PHP] Associative Array Benchmarking

2004-09-19 Thread Michal Migurski
> Although I'm not certain how well known this is, I thought I'd share > this with everyone who might have wondered if there was a benefit to > using or not using quotes when referencing associative arrays. The benefit to using quotes is that it's the right thing to do, unless you're looking for c

Re: [PHP] Associative Array Benchmarking

2004-09-19 Thread Curt Zirzow
* Thus wrote bskolb: > > Benchmark results: > > Function assocArrayWithQuotes() ran 50 times in 4.4331 seconds. > Function assocArrayWithoutQuotes() ran 50 times in 6.4170 seconds. > > The only difference in the two functions is the use of quotes, one with and > the other without. Th

Re: [PHP] Associative Array Benchmarking

2004-09-18 Thread Jason Wong
On Sunday 19 September 2004 09:33, bskolb wrote: > Although I'm not certain how well known this is, I thought I'd share this > with everyone who might have wondered if there was a benefit to using or > not using quotes when referencing associative arrays. You should be using single quotes rather t

[PHP] Associative Array Benchmarking

2004-09-18 Thread bskolb
Although I'm not certain how well known this is, I thought I'd share this with everyone who might have wondered if there was a benefit to using or not using quotes when referencing associative arrays. While benchmarking a few different array sorting options, I had used in_array and search_array.