I have an array with string and numerical indices:
$arr ['x'][0] = 10;
$arr ['y'][1] = 90;
$arr ['d'][1] = 45;
$arr ['y'][0] = 34;
Keys are not in a sorted order and preferably it stays that way. How can I
display the results like this:
x0 : 10
y1: 90
d1: 45
y0: 34
,using a foreach loop ? I tried with array_keys () like so:
foreach ($arr as $a) {
echo array_keys($a)." $a <br>";
}
but my output is this:
Array 10
Array 90
Array 45
Array 34
Is a foreach just not possible here or do I need to use another function or
this one differently ?
Can you help ? Thanks in advance!
Pjotr