摘要: call_user_func函数类似于一种特别的调用函数的方法,使用方法如下:function test($a, $b) { echo $a*$b;}call_user_func('test', 4, 5);输出结果为:20调用类内部的方法比较奇怪,居然用的是array,不知道开发者是如何考虑的,当然省去了new,也是满有新意的:class test { function demo($param) { echo $param; }}call_user_func(array("test", "demo"), "this is ou 阅读全文
posted @ 2012-04-13 13:20 前望 阅读(249) 评论(0) 推荐(0) 编辑