title: Change output last item in loop (ACF)
body: <p>I'm still learning php, but can't get my head on this one.</p>
  
  <p>For a loop in Wordpress I want to output a list with places, seperated with a comma and ending with a point.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php if ( have_rows('subplaats') ): ?&gt;
      &lt;section id="subplaats"&gt;
          &lt;div class="subplaats-container"&gt;
              &lt;h3 class="support"&gt;Wij bestrijden ook in...&lt;/h3&gt;
              &lt;p&gt;
                  &lt;?php while( have_rows('subplaats') ): the_row(); ?&gt;
                      &lt;?php $plaats = get_sub_field('plaats'); ?&gt;
                      &lt;?php echo $plaats; ?&gt;,
                  &lt;?php endwhile; ?&gt;
              &lt;/p&gt;
          &lt;/div&gt;
      &lt;/section&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Could anyone tell me how to accomplish this? I'm using Advanced Custom Fields. Am I also doing right on hierarchical level?</p>