variable variables
<p>how do i create variable variables inside a for loop?</p>

<p>this is the loop: </p>

<pre><code>for ( $counter = 1; $counter &lt;= $aantalZitjesBestellen; $counter ++) {

}
</code></pre>

<p>inside this loop i would like to create a variable $seat for each time it passes but it has to incrementlike so. first time it passes it should be <code>$seat1 = $_POST['seat'+$aantalZitjesBestellen]</code>, next time it passes: <code>$seat2 = $_POST['seat'+$aantalZitjesBestellen]</code> and so on.</p>

<p>so at the end it should be:</p>

<pre><code>$seat1 = $_POST['seat1'];
$seat2 = $_POST['seat2'];
</code></pre>

<p>and so on.</p>

<p>so the variable and the content of the $_POST should be dynamic.</p>
