I am using PHP/codeigniter, and typically to loop over query results I would do something like this:
<?php foreach($data as $row):?>
//html goes here
<?php endforeach;?>
But, say I have another object array, $data2, with the same number of objects as $data: is there any valid PHP syntax that would allow me to simultaneously access rows on both objects within the same loop using the foreach statement? I know I could do this with a regular for loop by accessing the indeces of the arrays, but this wouldn't be as clean.