时间:2021-07-01 10:21:17 帮助过:39人阅读
$a = 'test';
eval("function $a(){ echo 'function name is:'.__FUNCTION__;}");
test();
class foo{
public function __call($name, $param){
if($name=='test'){
echo 'test';
}else{
echo 'name not exists';
}
}
}
$obj = new foo();
$a = 'test';
$obj->$a();