title: PHP Iterate loop
body: <p>I am new to php and I am trying to get this to loop through additional LI's as long as at least 8 more exist I have tried and can't figure out the proper way to accomplish this.</p>
  
  <pre><code>    &lt;?php $model-&gt;getFeaturedVehicles(24, 0, unserialize($vtype), unserialize($makes), $p1range, $p2range, $filters) ?&gt;
  &lt;div id="slider"&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;?php while ($unit = $model-&gt;iterate()): ?&gt;
        &lt;div class="feature-vehicle" align="center"&gt;&lt;a href="&lt;?php echo DIR_REL,'/inventory/',$unit-&gt;url ?&gt;"&gt;&lt;img src="http://images.idealer1.com/getimage/90/&lt;?php echo $unit-&gt;previewvpid ?&gt;.jpg" alt="&lt;?php echo $unit-&gt;description ?&gt;" /&gt;&lt;/a&gt;
          &lt;p&gt;&lt;?php echo $unit-&gt;description ?&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;?php endwhile; ?&gt;
      &lt;/li&gt;
      &lt;li&gt;loop through 8 more if at least 8 more exist&lt;/li&gt;
      &lt;li&gt;loop through 8 more if at least 8 more exist&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>