<?php $names = [ 'John', 'Jane', 'George', 'Jim', 'Jack' ]; $groups = [ '1', '2', '3' ]; foreach ($names as $index => $name) { $result = "The student: " . $name . " belongs to the: " .$groups[$index%sizeOf($groups)]. "group" ; echo ($result); echo "<br>"; echo "<br>"; }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`