Re: [PHP4BETA] More on losing array values...
| From: | Andrei Zmievski | Date: | Sat, 13 Nov 1999 16:18:22 +0000 |
| Subject: | Re: [PHP4BETA] More on losing array values... | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6182@lists.php.net to get a copy of this message | ||
On Sat, 13 Nov 1999, Joey wrote:
> Again, a brief desc. of the bug:
>
> $i = 0;
> while($a = sybase_fetch_array(any_query))
> {
> $r[$i] = $a[0];
> print "Inside loop: $r[$i]";
> $i++;
> }
>
> var_dump($r);
>
>
> var_dump displays:
>
> array(17) {
> int(0)
> i:0
>
> int(1)
> i:0
> where "i" _SHOULD_ be that array val. I also tried using list()=each() to
> see if the vals were there, etc. The vals are gone, but the keys are
> intact.
This only happens with sybase_fetch_array?
-Andrei
* George Orwell was an optimist. *