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
forea
If both the arrays are of the same size you can use a for loop as:
for
for($i=0, $count = count($courses);$i<$count;$i++) { $course = $courses[$i]; $section = $sections[$i]; }