$name;function hello(){echo "hello word";}大概意思就是上面的代码请问下有什么方法可以达到这个效果就是想根据变量的值">
时间:2021-07-01 10:21:17 帮助过:23人阅读
$name="hello()"; $this->$name; function hello(){ echo "hello word"; }
$name="hello"; $name(); function hello(){ echo "hello word"; }
------解决方案--------------------
$name="hello()";
eval("return $name;");
function hello(){
echo "hello word";
}