object foreach loop iterate only even values
<p>Basically I have a set of object values I want render in 2 separate html lists</p>

<p>I figure the simplest way to do this is by displaying evens only in one list, and odd only in the other</p>

<p>Here is the current code for displaying a single list</p>

<pre><code>   &lt;ul&gt;
    &lt;?php foreach ($values as $value) : ?&gt;
    &lt;li&gt;&lt;?php echo $value-&gt;value; ?&gt;&lt;/li&gt;
    &lt;?php endforeach; ?&gt;
  &lt;/ul&gt;
</code></pre>
