Basic array stuff... Why [0] & ['key'] and [1] & ['value'] 'duplication'?
From: Glutinous (glutinosity_at_$yahoo$.co.uk)
Date: 10/31/03
- Next message: Daniel Tryba: "Re: if(is_array($_POST)) always = TRUE - why?"
- Previous message: Zurab Davitiani: "Re: Recommendations for PHP Form Validation Script"
- Next in thread: Jon Kraft: "Re: Basic array stuff... Why [0] & ['key'] and [1] & ['value'] 'duplication'?"
- Reply: Jon Kraft: "Re: Basic array stuff... Why [0] & ['key'] and [1] & ['value'] 'duplication'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 23:14:28 +0000
I've been studying this for hours, searching the www & usenet, and
still can't figure out why 'each' returns an array of four key/value
pairs, when it looks like just two pairs would suffice...
That is, it looks to me like
[0] & ['key']
are the same, and also
[1] & ['value'],
so what's the point of duplicating them?
I'm assuming that in fact there are serious differences between
[0] and ['key']
and between
[1] and [value],
but I haven't a clue what that might be.
Any hints, URLs, explanaitons, etc. most welcome!
Thank you.
- Next message: Daniel Tryba: "Re: if(is_array($_POST)) always = TRUE - why?"
- Previous message: Zurab Davitiani: "Re: Recommendations for PHP Form Validation Script"
- Next in thread: Jon Kraft: "Re: Basic array stuff... Why [0] & ['key'] and [1] & ['value'] 'duplication'?"
- Reply: Jon Kraft: "Re: Basic array stuff... Why [0] & ['key'] and [1] & ['value'] 'duplication'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|