for($i=0;$i<$num;$i++) {
if($i==even) $hilite="hilite";
dothing($i,$hilite);
}
This is basically what I want to accomplish. What is the most efficient way to determine if $i is even? I know I could check if half == mod 2 ... but that seems a little excessive on the calculations? Is there a simpler way?