Re: Do two lists in a while statement
| From: | Richard Lynch | Date: | Sun, 22 Apr 2007 04:00:15 +0000 |
| Subject: | Re: Do two lists in a while statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253461@lists.php.net to get a copy of this message | ||
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?