Re: Nested foreach ?
| From: | Stuart Felenstein | Date: | Sun, 17 Oct 2004 20:08:45 +0000 |
| Subject: | Re: Nested foreach ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199676@lists.php.net to get a copy of this message | ||
They are related in the sense that they are part of
one record in the database.
Fields
Skill YearsUsed LastUsed
When you say array of arrays you are referring to a
multi-dimensional ? I'm not sure what you mean by
are the [0] related.
Thank you,
Stuart
--- Robby Russell <robby@planetargon.com> wrote:
> On Sun, 2004-10-17 at 12:40 -0700, Stuart Felenstein
> wrote:
> > Robby
> >
> > Here is the printout :
> > Using-
> > print_r ($skills);
> > print_r ($skys);
> > print_r ($slus);
> >
> >
> > Array ( [0] => skillone [1] => skilltwo [2] =>
> > skillthree [3] => [4] => ) Array ( [0] => 2 [1] =>
> 3
> > [2] => 4 [3] => [4] => ) Array ( [0] => [1] => [2]
> =>
> > [3] => [4] => ) 1
> >
> > FYI - The skills is a string, skys and slus ints.
> > Also I had only filled in 3 of the 5 for each.
> >
> > Thank you
> > Stuart
>
> Are these 3 arrays related somehow? are all the
> [0]'s related and all
> the [1]'s related in each array?
>
> If so, you might consider having an array of arrays
>
> -Robby
>
> --
> /***************************************
> * Robby Russell | Owner.Developer.Geek
> * PLANET ARGON | www.planetargon.com
> * Portland, OR | robby@planetargon.com
> * 503.351.4730 | blog.planetargon.com
> * PHP/PostgreSQL Hosting & Development
> ****************************************/
>
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc