Wenn man performant und elegant ein belibeges 2 spaltiges Tabellen HTML Layout generieren will ohne Tabellen, kann man z.B: so tun:
$count = count($array);
for($i = 0; $i < $count; $i++)
{
$style = !$i%2 ? "left" : "right";
$html .= "<div class='$style'>{$array[$i]}</div>";
}
und mit CSS ausrichten:
#container{width:600px}
.left {width:200px}
.right {width:400px}
