You don't need to open the tags more than once. You can also make a function out of it if you do the same thing multiple times:
0) {
$out = "\n";
foreach ($items as $item) {
$out .= "\t- $item
\n";
}
$out .= "
\n";
}
return $out;
}
?>
other page content
Also, if you don't mind using Javascript, Jquery makes things done mod 2 pretty easy (e.g., for zebra striping a table):
$("tr:odd").addClass("odd");
$("tr:even").addClass("even");