RE: Do two lists in a while statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/21/07, Richard Kurth <richardkurth@xxxxxxxxxxxxxx> wrote:
> How can I do something like this in the same while statement. This 
> does not work while (list(,$possible) = each($possiblefields)  
> list(,$possibleview) = each($possiblefieldsdiscription)){
> }
>

What about using && ?


while (list(,$possible) = each($possiblefields) &&
list(,$possibleview) = each($possiblefieldsdiscription)){
}


Doesn't && mean if both variables are TRUE.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux