Re: [PHP] I'm doing something wrong....

2002-05-16 Thread Martin Wickman
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

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread Jerome Houston
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 [&#

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread Jerome Houston
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

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread 1LT John W. Holmes
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

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread Robert Rothe
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. >

RE: [PHP] I'm doing something wrong....

2002-05-15 Thread Matthew Walker
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

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread Thalis A. Kalfigopoulos
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

[PHP] I'm doing something wrong....

2002-05-15 Thread Robert Rothe
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'