RE: [PHP] Do two lists in a while statement
| From: | Richard Kurth | Date: | Sat, 21 Apr 2007 19:13:03 +0000 |
| Subject: | RE: [PHP] Do two lists in a while statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253441@lists.php.net to get a copy of this message | ||
On 4/21/07, Richard Kurth <richardkurth@centurytel.net> 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.