class fmOutput { public function sex($value = '') { return 66; } public function op($funcname='', $value = '') { return $this->$funcname; }
public function __call($funcName,$args)
{
	return "Oops,{{$funcName}}is unexist";
}
} $FM = new fmOutput('sex'); echo $FM->op();
然后,没有任何反应,求各位大神解疑。。
|  |      1g079708      2016-07-14 18:53:08 +08:00 | 
|  |      2g079708      2016-07-14 18:57:00 +08:00 | 
|  |      3rekulas      2016-07-14 21:57:14 +08:00  1 return $this->{$funcname}(); | 
|  |      4wh1012023498      2016-07-14 22:49:37 +08:00 回复支持 md 吗。。 ```php echo 'hello meizi~'; ``` | 
|  |      5wh1012023498      2016-07-14 22:50:23 +08:00 = = 好绝望 | 
|  |      6UnisandK      2016-07-14 23:02:39 +08:00 @wh1012023498 支持 gist | 
|  |      7msg7086      2016-07-15 06:53:07 +08:00 is unexist -> does not exist. unexist 是什么鬼。 | 
|  |      8rekulas      2016-07-15 09:09:40 +08:00 | 
|  |      9rekulas      2016-07-15 09:10:10 +08:00 ``` ee ``` | 
|  |      10rekulas      2016-07-15 09:10:28 +08:00 ```   代码模式好像不见了 = = ``` | 
|  |      17tanteng      2016-07-15 12:00:32 +08:00 $this->{'register'.$command.'Command'}(); | 
|  |      18rekulas      2016-07-15 13:04:55 +08:00 **gggggggg** _ggg_ ### h1h1 | 
|  |      19hyq      2016-07-15 14:06:57 +08:00 | 
|  |      20techmoe      2016-07-15 23:03:23 +08:00 via Android 可变函数后面得加括号吧。。 |