Multiple index variables in PHP foreach loop
TRY -
1)
<?php$FirstArray = array('a', 'b', 'c', 'd');$SecondArray = array('1', '2', '3', '4');foreach($FirstArray as $index => $value) { echo $FirstArray[$index].$SecondArray[$index]; echo "<br/>";}?>
or 2)
<?php$FirstArray = array('a', 'b', 'c', 'd');$SecondArray = array('1', '2', '3', '4');for ($index = 0 ; $index < count($FirstArray); $index ++) { echo $FirstArray[$index] . $SecondArray[$index]; echo "<br/>";}?>