I'm creating some variable names dynamically in a while loop:
while($count < $agendaItemsCount) {
$tr_mcs_agendaitem_[$count]_1 = get_post_meta( $post->ID, '_tr_mcs_agendaitem_' . $count . '_1', true );
++ $count
}
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?