title: Loop add .last class to last item in loop
body: <p>Im using wordpress and using the following to get the last 3 most recent posts:</p>
  
  <pre><code>    &lt;?php query_posts('showposts='.$latest_num.'&amp;cat=-'.$featured_cat.','.$latest_ignore.''); ?&gt;
      &lt;?php while (have_posts()) : the_post(); ?&gt;
      &lt;li&gt;
          &lt;div class="imgholder"&gt;
              &lt;a href="/wp-content/themes/twentyten/images/slide1.jpg" data-gal="prettyPhoto[featured]" title="&lt;?php the_title(); ?&gt;"&gt;
                  &lt;img src="&lt;?php echo get_post_meta($post-&gt;ID, 'thumbnail',true) ?&gt;" width="275" height="145" alt="Post Image" class="postimg-s" /&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;h4&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;
          &lt;p&gt;&lt;?php the_content('Read more...'); ?&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;?php endwhile; ?&gt;
  </code></pre>
  
  <p>What I want to do is add a class named <code>'last'</code> to the <code>&lt;li&gt;</code> element on the 3rd interation through the loop.</p>
  
  <p>Anyone got any ideas how I could add this?</p>