Try foreach ($array1 as $index => $arr1) {...}
foreach ($array1 as $key1 => $val1 )
{
foreach ($array2 as $key2 => $val2)
{
echo $arr2[$arr2[$key1][$key2]];
}
}
0
solved Associative array index as variable
Try foreach ($array1 as $index => $arr1) {...}
foreach ($array1 as $key1 => $val1 )
{
foreach ($array2 as $key2 => $val2)
{
echo $arr2[$arr2[$key1][$key2]];
}
}
0
solved Associative array index as variable