http://www.php.net/manual/en/language.types.array.php
<snippet from page>
An array in PHP is actually an ordered map. A map is a type that maps values 
to keys.
</snippet>

we're not working with C where each array value is right next to each other 
in memory.  it's an abstraction that does the job intelligently, 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 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.
 >
 > 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'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't this be done?
 > >
 > > TIA,
 > >
 > > Rob
 > >
 > > --
 > > PHP General Mailing List (http://www.php.net/)
 > > To unsubscribe, visit: http://www.php.net/unsub.php
 > >

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to