$foobar = 'yes'; $key = 'bar'; print ${'foo'.$key};