i am trying to loop through two multi-dimensional array with a foreach loop
[array1] => Array (
[0] => Array ( 1,2,3 )
[1] => Array ( 4,5,6 )
[2] => Array ( 7,8,9 )
)
[array2] => Array (
[0] => Array ( 1,2,3 )
[1] => Array ( 4,5,6 )
[2] => Array ( 7,8,9 ) )
)
both has same keys,
i want to access 1st array of both arrays at same time, i want to do something like this
foreach($array1 as $key1=>$value1 && $array2 as $key2=>$value2)
echo $value1[1]." ".$value2[2]
its not correct, but that's what i want to do !!