title: Display variable with auto-increment
body: <p>I have a form that records various fields with a variable name in autoincrement.
  when I save my my form variables looks like</p>
  
  <pre><code>&lt;form&gt;
  &lt;?php 
      $i = 1;
      foreach ($variables as $var ) {
          echo '&lt;input type="text" name="txt$i" value="$var-&gt;name" /&gt;';
          $i ++;
      }
  ?&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And my question is how to display the value of the input field, i make that, but not working</p>
  
  <pre><code>&lt;?php 
      foreach ($variables as $var) {
          echo $var-&gt;txt$i;
          $i ++;
      }
  ?&gt;
  </code></pre>