php dapatkan variabel dengan nama string
${$variableName} or $$variableName;
//example:
$variableName = 'foo';
$foo = 'bar';
// The following are all equivalent, and all output "bar":
echo $foo;
echo ${$variableName};
echo $$variableName;
Yoshkinawa