Re: [PHP-DEV] Bug #14068: 2 while list each dont work

2001-11-15 Thread Andrey Hristov

Try
reset($a); before the first while, and reset($b) just before the second in 
the body if the first.



On Thursday 15 November 2001 06:56 am, you wrote:
> From: [EMAIL PROTECTED]
> Operating system: Linux
> PHP version:  4.0.5
> PHP Bug Type: Scripting Engine problem
> Bug description:  2 while list each dont work
>
> 
> $a[0]="x";
> $a[1]="y";
> $b[0]="z";
> $b[1]="w";
> $b[2]="u";
>
> while (list($key,$val)=each($a) )
>   {
>   while (list($key2,$val2)=each($b) )
>   {
>   print "$key: $val - $key2: $val2";
>   }
>   }
> ?>
>
> './configure' '--with-mysql' '--with-apache=../apache_1.3.20'
> '--with-gd=../gd-1.8.3' '--enable-track-vars'

-- 
Andrey Hristov
Web Developer
Icygen Corporation
BUILDING SOLUTIONS
http://www.icygen.com

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14068: 2 while list each dont work

2001-11-15 Thread witterstein

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  2 while list each dont work

";
}
}
?>

'./configure' '--with-mysql' '--with-apache=../apache_1.3.20'
'--with-gd=../gd-1.8.3' '--enable-track-vars'
-- 
Edit bug report at: http://bugs.php.net/?id=14068&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]