Possible Duplicate:
Appending a value of a variable to a variable name?
I can't figure out the syntax at all and have searched far and wide.
I would like to do this:
$uni = "ntu";
$selectedntu = "something";
echo $selected$uni;
// output should be the same as
echo $selectedntu;
In other words I'd like to use the contents of the second variable $uni to join onto the first variable's name. $selectedntu has been set with a foreach loop, but I can't figure out how to reference the two variables together in php.