Re: [PHP] performance with looping and count()ing

2004-03-26 Thread Tom Rogers
Hi, Saturday, March 27, 2004, 4:45:38 AM, you wrote: CWP> hi. CWP> ok, so i've always been under the impression that count()ing during the CWP> expression of a loop was much inefficient when compared to count()ing CWP> just before the loop expression. CWP> GOOD: CWP>$the_array_cnt = count($

[PHP] performance with looping and count()ing

2004-03-26 Thread Chris W. Parker
hi. ok, so i've always been under the impression that count()ing during the expression of a loop was much inefficient when compared to count()ing just before the loop expression. GOOD: BAD: but then i did some tests and found that only on very large arrays is there any difference between th