title: elseif statement not working
body: <p>I have written some script that works great, BUT I have tried to add an elseif statement in which appears to do absolutely nothing, can't figure out where I am going wrong. (Yes I am a PHP newbie, but I am trying! :)</p>
  
  <pre><code>$i = 0;
  foreach($arrJobs as $job)
  {
      echo "&lt;div class=\"job-ind\"&gt;\n";
      echo '&lt;p&gt;&lt;a href="' . $job-&gt;url . '"&gt;' . $job-&gt;title . ', ' . $job-&gt;location . "&lt;/a&gt;&lt;/p&gt;\n";
      echo '&lt;p class="smaller"&gt;Reference: ' . $job-&gt;reference . "&lt;/p&gt;\n";
      echo '&lt;p&gt;&lt;strong&gt;' . $job-&gt;salary . "&lt;/strong&gt;&lt;/p&gt;\n";
      echo "&lt;/div&gt;\n";
  
      if (++$i == 5) break;
  
      elseif ($i == 0) {
          echo '&lt;img src="img/no-vac.png"/&gt;';
      }
  }
  </code></pre>
  
  <p>Everything up the elseif statement works perfectly.
  Must be something simple I am missing or misunderstanding!</p>