Re: Array question
| From: | Christian Reiniger | Date: | Thu, 15 Feb 2001 11:13:35 +0000 |
| Subject: | Re: Array question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39877@lists.php.net to get a copy of this message | ||
On Thursday 15 February 2001 01:40, Chris wrote:
> How do I get the index,number of an array if reffering to an array via
> string? Ex:
> I have 100 arrays, and I want to know what # myarray["something"] is.
That element doesn't have an index number such arrays are implemented as
hashes or trees, which don't store data at "fixed positions" (that's a
very bad explanation, but, well...)
The "index" is the "key" in this case - in your example it's
"something".
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God --------- and she was black.