R C*_*R C 3 php variables
只是一个关于语法的简单问题.简化:
$testme[0] = "hello"; $v = "me"; echo $test{$v}[0]; //expect this to output "hello"
有没有办法写上面的最后一行,以便"我"被一个变量引用?
谢谢!
zer*_*kms 6
使用
echo ${'test' . $v}[0];
代替
归档时间:
14 年,5 月 前
查看次数:
48 次
最近记录: