这几天在研究个框架,发现一个语句理解不了
请问:call_user_func($arr);这个函数在接受下面的数组传参后能实现什么功能$arr=array(2) { [0]=> object(indexClass)#3 (7) {
["_modelsHome:protected"]=> NULL
["_viewsHome:protected"]=> NULL
["_configInc:protected"]=> NULL
["_tplExt:protected"]=> string(8) ".tpl.php"
["_keys:protected"]=> array(0) { }
["_error:protected"]=> NULL
["view"]=> object(Of_View)#4 (4) {
["pageViewVarQuote:private"]=> array(1) {
["editionInBanner"]=> &array(2) {
["oexam"]=> array(2) {
["edition"]=> string(5) "1.5.2"
["date"]=> string(10) "2011-07-03"
}
["otraining"]=> array(2) {
["edition"]=> string(5) "2.2.1"
["date"]=> string(10) "2011-07-03"
}
}
}
["_basePath:protected"]=> string(0) ""
["_widgetsHome:protected"]=> string(0) ""
["editionInBanner"]=> &array(2) {
["oexam"]=> array(2) {
["edition"]=> string(5) "1.5.2"
["date"]=> string(10) "2011-07-03"
}
["otraining"]=> array(2) {
["edition"]=> string(5) "2.2.1"
["date"]=> string(10) "2011-07-03"
}
}
} //arr[view]
} //arr[0]
[1]=> string(5) "index"
}
call_user_func($);执行?????
请问:call_user_func($arr);这个函数在接受下面的数组传参后能实现什么功能$arr=array(2) { [0]=> object(indexClass)#3 (7) {
["_modelsHome:protected"]=> NULL
["_viewsHome:protected"]=> NULL
["_configInc:protected"]=> NULL
["_tplExt:protected"]=> string(8) ".tpl.php"
["_keys:protected"]=> array(0) { }
["_error:protected"]=> NULL
["view"]=> object(Of_View)#4 (4) {
["pageViewVarQuote:private"]=> array(1) {
["editionInBanner"]=> &array(2) {
["oexam"]=> array(2) {
["edition"]=> string(5) "1.5.2"
["date"]=> string(10) "2011-07-03"
}
["otraining"]=> array(2) {
["edition"]=> string(5) "2.2.1"
["date"]=> string(10) "2011-07-03"
}
}
}
["_basePath:protected"]=> string(0) ""
["_widgetsHome:protected"]=> string(0) ""
["editionInBanner"]=> &array(2) {
["oexam"]=> array(2) {
["edition"]=> string(5) "1.5.2"
["date"]=> string(10) "2011-07-03"
}
["otraining"]=> array(2) {
["edition"]=> string(5) "2.2.1"
["date"]=> string(10) "2011-07-03"
}
}
} //arr[view]
} //arr[0]
[1]=> string(5) "index"
}
call_user_func($);执行?????
解决方案 »
- 求php-5.3.6-Win32-VC9-x64下载
- 与大家分享今天工作中的一件趣事,一个warning引发的“血案”
- sql语句的优化问题
- .htaccess设置,如何实现URL 重写
- 一个分页的问题,可能是我的SQL语句写的不对吧,但是我不确定,请高手帮忙!
- 测试XXTea算法,网上没有一个php版本能还原我的字符串,太奇葩了。
- 求救:COPY的PHP代码为什么有时会乱码
- 能讲一下,PHP在WINDOWS下开发,运行在LINUX上,编程时要注意什么吗?
- wampserver vhost 能添加2个主机
- PHP如何做后台登陆验证判断登陆账号和密码错与对以及验证码
- 从数据库中读出内容的代码怎么写?
- 为何创建完对象,函数就已经调用啦?
indexClass不是个函数,是个对象,可能存在一个indexclass类(控制器)和一个index方法(action)。
这些都是猜测,不看函数的话。很难猜出来是干嘛的。