Hi all
This is probably very basic stuff for most of you!
I have this array which i have printed out:
Array
(
[mother] => Array
(
[sister] =>
[brother] =>
)
[father] => Array
(
[brother] =>
[cousin] =>
)
[grandad] =>
)
I need some code which will loop through the array above and display each element in the array accordingly, however, each time i try the following:
foreach ($array as $key => $value) {
echo "Key: $key <br />";
}
I only get the top three elements (mother, father and grandad).
How can I get it to display them all irrelevant of how deep the array might go?
Thankyou
Doug.