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
y, May 15, 2002 4:35 PM
Subject: [PHP] I'm doing something wrong
> I've created an array. A very simple array that uses strings as keys.
>
> aname['one']=something;
> aname['two']=something else;
>
> Isn't there any way to directly access
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
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
I've created an array. A very simple array that uses strings as keys.
aname['one']=something;
aname['two']=something else;
Isn't there any way to directly access the 'n'th element?
example: aname[0]?
I've searched the group, but haven't found anything. Am I missing
something or can'
8 matches
Mail list logo