关于变量的死简单PHP问题

R C*_*R C 3 php variables

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

$testme[0] = "hello";
$v = "me";
echo $test{$v}[0]; //expect this to output "hello"
Run Code Online (Sandbox Code Playgroud)

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

谢谢!

zer*_*kms 6

使用

echo ${'test' . $v}[0];
Run Code Online (Sandbox Code Playgroud)

代替