Is it possible to have a foreach
loop in PHP with multiple "index" variables, akin to the following (which doesn't use correct syntax)?
foreach ($courses as $course, $sections as $section)
If not, is there a good way to achieve the same result?
If both the arrays are of the same size you can use a
for
loop as:TRY -
1)
or 2)