Assuming LordShryku's example:
<table border="0">
<?php
$ar = array("1","2","3","4","8");
$br = array("1","2","4","6","8");
for($i=0;$i<count($ar);$i++) {
echo "<tr>";
if($ar[$i] != $br[$i]) {
echo "<td>
<td>".$br[$i]."
<tr>
<td>".$ar[$i]."
<td> ";
}
else {
echo "<td>".$ar[$i]."
<td>".$br[$i];
}
}
?>
</table>
what would need to be adapted if:
$ar was now $ar = array("1","2","3","4","8","10");
and $br was now $br = array("1","2","4","6","8","11","12");
I hope this makes sense.