I wanted to echo
two array at a time. Please check bellow there i am already having echo of $another_arr1
array and now i want to echo another $another_arr2
array. How can i do it?
$arr1 = array('a'=>'1');
$arr2 = array('a'=>'2');
$arr3 = array('a'=>'3');
$another_arr1 = array($arr1,$arr2,$arr3);
$arr4 = array('b'=>'4');
$arr5 = array('b'=>'5');
$arr6 = array('b'=>'6');
$another_arr2 = array($arr4,$arr5,$arr6);
foreach ($another_arr1 as $_another_arr1){
foreach ($_another_arr1 as $another1){
echo $another1.' ->'.' need to put $another_arr2 value here <br/>';
}
}
'; } }` – Alive to die - Anant Feb 01 '17 at 04:33