public class Student{ ?public function speek($name){ ????echo ‘my name is ‘.$name; ?} ?}$method=‘speek‘;$stu_model=new Student();$stu_model->$stu_model(‘matt‘);
其中$method为自己定义的变量
PHP动态函数处理
原文地址:http://www.cnblogs.com/mawenzhu/p/7784081.html
public class Student{ ?public function speek($name){ ????echo ‘my name is ‘.$name; ?} ?}$method=‘speek‘;$stu_model=new Student();$stu_model->$stu_model(‘matt‘);
其中$method为自己定义的变量
PHP动态函数处理
原文地址:http://www.cnblogs.com/mawenzhu/p/7784081.html