title: PHP Using $i to count
body: <p>Hello I want to add a number to the variable each time it loops so that I can pick up that variable later.</p>
  
  <pre><code>&lt;?php
  $i=1;
  while($i&lt;=5)
    {
    $myinfo.$i = "This is the text I can change";
    $i++;
    }
  ?&gt;
  
  &lt;?php echo $myinfo1 ?&gt;
  &lt;?php echo $myinfo2 ?&gt;
  &lt;?php echo $myinfo3 ?&gt;
  &lt;?php echo $myinfo4 ?&gt;
  &lt;?php echo $myinfo5 ?&gt;
  </code></pre>
  
  <p>I can not include the "myinfo1" in the loop because I need to add this to a table a little way down the page.</p>
  
  <p>I am sorry if this is not clear but I do not know the right name for what I am trying to do.</p>
  
  <p>If anyone can help that will be great.</p>