Re: Do two lists in a while statement

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

 




On Sat, April 21, 2007 1:23 pm, Richard Kurth 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)){
> }
>

If you know for sure that there is a 1-to-1 match, you can do:
while (list(, $possible) = each($possiblefields)){
  list(, $possibleview) = each($possiblefielddiscription);
}

Personally, I would spell it 'description' however. :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
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