Re: Re: How to display all keys in a multi-dim array?

From: Date: Sun, 23 May 2004 17:46:42 +0000
Subject: Re: Re: How to display all keys in a multi-dim array?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-186803@lists.php.net to get a copy of this message
Hello Torsten, Sunday, May 23, 2004, 6:44:08 PM, you wrote: >> $array = array(); >> $array['a'] = "1"; >> $array['a']['b'] = "2"; >> $array['a']['b']['c'] = "3"; >> $array['a']['b']['c']['d'] = "4"; TR> Could you describe a bit more in detail what you mean with "based on search TR> result for 4"? I know that 4 is a *unique value* in my multi-dim array, but I do not know the key names that exist under-neath it because they were created dynamically. In other words - how do I find out all of the keys that hold the value 4? Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde

« previous php.general (#186803) next »