$m = 'this_is_m';
$this_is_m = 'this_is_m_not_full :(';
$this_is_m_full = 'this_is_m_FULL!! :D';
print ${$m};
(您好第一:P)输出:修饰的可变变量
this_is_m_not full :(
不知道如何输出this_is_m_FULL!! :D
使用$m
??
我已经尝试过:
print $"{$m}_full";
print $'{$m}_full';
print $'$m_full';
print ${$m}_full';
无提前工作...谢谢,,
你考虑过使用数组吗? – jeroen
如果你必须使用变量变量,你有一些主要的设计缺陷... –