Re: I'm doing something wrong....
| From: | 1LT John W. Holmes | Date: | Wed, 15 May 2002 21:14:58 +0000 |
| Subject: | Re: I'm doing something wrong.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97822@lists.php.net to get a copy of this message | ||
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" <rrothe@mindspring.com>
To: <php-general@lists.php.net>
Sent: Wednesday, 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 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
>