title: PHP Increment by Half
body: <p>I have a quick question, which is probably easy to answer.  I've goolged around, but not sure if I am searching correctly or what.  Anyway, using PHP, how can I increment by halves?</p>
  
  <p>For example, I know I can use the following loop:</p>
  
  <pre><code>&lt;?php 
  for ($i=1; $i&lt;21; $i++) {
      print($i);
  }
  </code></pre>
  
  <p>And it will print 1 - 20.  </p>
  
  <p>But, how can I get it to output something like the following:</p>
  
  <pre><code>1
  1.5
  2
  2.5
  etc...
  </code></pre>
  
  <p>Sorry for my ignorance on this, I'm just not sure how to go about it.  Thanks!</p>