RE: [PHP] OK ... WHY does this work ?????

2004-09-15 Thread Gryffyn, Trevor
Read over some of the examples at: http://us4.php.net/types.array If you don't set a key, PHP starts with '0' and increments as you add more elements to the array. If you have NOTICEs turned on, I believe you'll get a notice saying that $arrlevels[99] doesn't exist. It's not a fatal error, so

[PHP] OK ... WHY does this work ?????

2004-09-14 Thread -{ Rene Brehmer }-
This is some experimental code I did to try and find a way to recycle the same query multiple times as efficient as possible. With the purpose of efficiently comparing the results of 2 queries where the resultset from both queries won't match in the size (in this sample test it coincidently

Re: [PHP] OK ... WHY does this work ?????

2004-09-14 Thread Greg Donald
On Tue, 14 Sep 2004 22:32:54 +0200, -{ Rene Brehmer }- [EMAIL PROTECTED] wrote: Unless I misunderstand how PHP make unspecified arrays (and I probably do since this works), when you have an array of 3 elements on the first dimenstion like I do, and then ask for