Create variable names dynamically
<p>I'm creating some variable names dynamically in a while loop:</p>

<pre><code>while($count &lt; $agendaItemsCount) {
      $tr_mcs_agendaitem_[$count]_1 = get_post_meta( $post-&gt;ID, '_tr_mcs_agendaitem_' . $count . '_1', true );
    ++ $count
}
</code></pre>

<p>But this code is causing an unexpected string parse error. How do I write this code so that the new var gets declared with the count variable output along with the rest of the var name?</p>
