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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to