Robert Rothe wrote:
> Thanks. So the next() and prev() functions just traverse an array
> some type of linked list? This is what precludes direct access to
> specific elements?
Yup, there is an internal position pointer in every array which are
used by most array_ functions.
--
PHP Gene
t; <[EMAIL PROTECTED]>
Reply-To: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, "Robert Rothe" <[EMAIL PROTECTED]>
Subject: Re: [PHP] I'm doing something wrong
Date: Wed, 15 May 2002 17:14:58 -0400
There is no [0]...only [
but gives
you a familiar-looking interface.
-j
Original Message Follows
From: Robert Rothe <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [PHP] I'm doing something wrong
Date: Wed, 15 May 2002 17:10:44 -0400
Thanks. So the next() and prev() functions just travers
There is no [0]...only ['one'] and ['two']...
Look through the array functions, there may be a way to reassign the keys...
---John Holmes...
- Original Message -
From: "Robert Rothe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 4:35 PM
Subject: [PHP] I'm doi
Thanks. So the next() and prev() functions just traverse an array using
some type of linked list? This is what precludes direct access to
specific elements?
"Thalis A. Kalfigopoulos" wrote:
>
> In an associative array, there is no notion of the 'n-th' element. So AFAIK you
>can't do that.
>
When you create an array this way, no numeric indexes are assigned.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Robert Rothe [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I'm doing something
In an associative array, there is no notion of the 'n-th' element. So AFAIK you can't
do that.
cheers,
thalis
On Wed, 15 May 2002, Robert Rothe wrote:
> I've created an array. A very simple array that uses strings as keys.
>
> aname['one']=something;
> aname['two']=something else;
>
> Isn
7 matches
Mail list logo