title: PHP for loop displaying items on one line
body: <p>I'm having some problems with a list I am making. I am wanting to echo out the value of a for loop in a dropdown box but when doing so it echos it out all onto one line like so.</p>
  
  <p><a href="https://i.stack.imgur.com/7VLF1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7VLF1.png" alt="example of output"></a></p>
  
  <p>Heres what my code looks like</p>
  
  <pre><code>&lt;select style="width: 183px;" name="timee" id="timee"&gt;
  &lt;?php
  $timee = '';
  for ($i = 0; $i &lt;= 24; $i++) {
      if($i &lt;= 0) {
      $timee .= $i;
      }else {
      $timee .= str_pad($i, 2, "0", STR_PAD_LEFT);
      }
  }
  ?&gt;
  &lt;option value="&lt;?php echo $timee; ?&gt;"&gt;
      &lt;?php echo $timee; ?&gt;
  &lt;/option&gt;                                
  &lt;/select&gt;
  </code></pre>
  
  <p>Any help would be much appreciated as I'm a bit stumped as to what it is... like usual its probably something simple as hell.</p>