On 4/21/07, Richard Kurth <[EMAIL PROTECTED]> wrote:
On 4/21/07, Richard Kurth <[EMAIL PROTECTED]> 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.
Yes, isn't that what you wanted?
Normaly a while checks also if it was TRUE. now it checks if both are TRUE..
If you only require one of both to be TRUE, use || instead of &&.
Tijnema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php