Array
(
[item1] => Array
(
[weight] => Array
(
[0] => 20
[1] => 40
)
[length] => Array
(
[0] => 2.0 - 4.0
[1] => 5.0 - 6.0
[2] => 2.0 - 6.0
[3] => 0.9 - 1.9
)
[width] => Array
(
[0] => 90
[1] => 115
[2] => 140
[3] => 190
)
)
[item2] => Array
(
[weight] => Array
(
[0] => 20
[1] => 40
)
[length] => Array
(
[0] => 2.0 - 4.0
[1] => 5.0 - 6.0
[2] => 2.0 - 6.0
[3] => 0.9 - 1.9
)
[width] => Array
(
[0] => 90
[1] => 115
[2] => 140
[3] => 190
)
)
...
item1 : 20 ; (weight)
item1 : 40 ; (weight)
item1 : 2.0 - 4.0 ; (length)
item1 : 5.0 - 6.0 ; (length)
item1 : 2.0 - 6.0 ; (length)
item1 : 0.9 - 1.9 ; (length)
...
item2 : 20 ; (weight)
item2 : 40 ; (weight)
foreach ($arr as $itemName => $item) {
foreach ($item as $propName => $prop) {
foreach ($prop as $val) {
echo "$itemName : $val ; ($propName)<br>";
}
}
}