Re: [PHP-DEV] Bug #2534: evaluation of list($k,$v)=each($a) delays setting $k and $v From: Adam Trachtenberg (adam <email protected>)
Date: 10/15/99

On 15 Oct 1999 thomas <email protected> wrote:

> while (list($k,$v) = each($a) && $v == "v") {

Try:
    while (list($k,$v) = each($a) and $v == "v") {
or:
    while ((list($k,$v) = each($a)) && $v == "v") {

and see if that helps. What you're doing is:

    while (list($k,$v) = (each($a) && $v == "v")) {

-adam

-- 
/ adam maccabee trachtenberg | visit college life online \
\ adam <email protected>           | http://www.student.com    /

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>