I have an array of id’s: 27, 28, 29.
I want to loop through them and attach their actual value onto another PHP variable.
In the end I want to output 600, 700 and 800.
<?php
$dataTableArray = Array();
$dataTableArray = array(27,28,29);
$new2009_27 = 600;
$new2009_28 = 700;
$new2009_29 = 800;
foreach ($dataTableArray as $id => $value){
// need help here
echo $new2009_.$value;
}
?>
Any ideas?