变量上的简单PHP问题


Dead simple PHP issue on variables

只是一个关于语法的简单问题。简化:

$testme[0] = "hello";
$v = "me";
echo $test{$v}[0]; //expect this to output "hello"

有没有办法写上面的最后一行,使"我"被变量引用?

谢谢!

使用

echo ${'test' . $v}[0];

相反