array(2) {
["raz"]=>
array(2) {
["qqq"]=>
array(1) {
[0]=>
string(1) "6"
}
["www"]=>
array(1) {
[0]=>
int(0)
}
}
["dva"]=>
array(2) {
["qqq"]=>
array(1) {
[0]=>
int(0)
}
["www"]=>
array(1) {
[0]=>
int(0)
}
}
$arr = [
"raz" => [
"qqq" => [ "6" ],
"www" => [ 0 ]
],
"dva" => [
"qqq" => [ 0 ],
"www" => [ 0 ]
]
];
function printArr($arr, $path = '') {
foreach ($arr as $key => $val) {
if (is_array($val)) {
printArr($val, $path."[$key]");
} else {
echo $path."[$val]<br>";
}
}
}
printArr($arr);