Re: How to display all keys in a multi-dim array?
| From: | Torsten Roehr | Date: | Sun, 23 May 2004 17:44:08 +0000 |
| Subject: | Re: How to display all keys in a multi-dim array? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186801@lists.php.net to get a copy of this message | ||
"Richard Davey" <rich@launchcode.co.uk> wrote in message
news:1573539471.20040523175313@launchcode.co.uk...
> Hi all,
>
> I am trying to work out how to display all of the keys in a
> multi-dimensional array (not their values). For example:
>
> $array = array();
> $array['a'] = "1";
> $array['a']['b'] = "2";
> $array['a']['b']['c'] = "3";
> $array['a']['b']['c']['d'] = "4";
>
> What I need is to be able to somehow print out the values a,b,c and d
> based on the search result for "4".
>
Could you describe a bit more in detail what you mean with "based on search
result for 4"?
Thanks and best regards,
Torsten Roehr