I'm trying to get the following code to work:
<?php
$resp_id=array(1, 5, 7, 9, 11);
$resp_id_1=array(1, 3, 4, 5);
//This works
$temp=$resp_id_1;
print_r($temp);
//This doesn't work
$i=0;
$temp="\$resp_id_".$resp_id[$i];
print_r($temp);
?>
Can someone tell me why the last three lines of code do not work correctly?
thanks,
Luis