I want to loop through a multi-dimmensional array, and output the key's of both inner and outer as text.
$multi_array = array('x' => array(1), 'y' => array(2), 'z' => array(3));
foreach ($multi_array as $outer) {
echo "{$outer}<br />";
}
There would also be an inner loop, but that is working fine, so I won't include it here. I want the above to output x y z, but instead it outputs array, array, array
How do I get it to do x y z?
Thanks