As seen here and some other places for each is well explained, but how do I use it with a "deeper" array?
I have this array:
Array (
[3] => Array ( [ort] => Array ( [0] => Brunnsdalen [1] => Agerum ) [kommun] => Array ( [0] => Alvesta kommun [1] => Arjeplogs kommun ) )
[4] => Array ( [ort] => Array ( [2] => Björstorp ) )
[6] => Array ( [kommun] => Array ( [2] => Arboga kommun ) ) )
And the closest I've gotten is this:
foreach ($allaMedlemmarsIntel as $row => $innerArray){
foreach($innerArray as $innerRow => $deeperInner){
foreach($deeperInner as $deeperinnerRow => $value){
echo $value . "<br/>";
}
}
}
How can I separate the output values?
I'd like to be able to display each value under [ort] as 'value' and all values under [kommun] as value – Alisso 1 min ago edit