yah, there's a function. (isn't there almost always?)

http://www.php.net/manual/en/function.array-values.php

it gives you a numerically indexed array of all the values in your current 
array, associative or not.

-j

----Original Message Follows----
From: "1LT John W. Holmes" <[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 ['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 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
 >


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



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

Reply via email to