<?php
function foobar($arg, $arg2) {
echo __FUNCTION__, " got $arg and $arg2\n";
}
class foo {
function bar($arg, $arg2) {
echo __METHOD__, " got $arg and $arg2\n";
}
} // Call the foobar() function with 2 arguments
call_user_func_array("foobar", array("one", "two")); // Call the $foo->bar() method with 2 arguments
$foo = new foo;
call_user_func_array(array($foo, "bar"), array("three", "four"));
?> 以上例程的输出类似于:
foobar got one and two
foo::bar got three and four

最新文章

  1. IOS之推送通知(本地推送和远程推送)
  2. 【POI xls】解析xls遇到的问题
  3. 巧用Windows 7计划任务设置定时提醒
  4. 【转】oracle数据库中varchar2陷阱
  5. JAVA多线程解惑之多线程返回值
  6. Extjs4 关于设置form中所有子控件为readOnly属性的解决方案
  7. web前端开发中Nodejs、Grunt、npm等的介绍、使用
  8. poj2478--欧拉函数打表
  9. 基于KNN的相关内容推荐
  10. EasyUI整合篇
  11. Oracle导入建表的sql文件类型
  12. Flask--(登录注册)抽取视图函数
  13. junit 基础使用
  14. compact 创建一个包含变量名为数组的键和它们的值为数组的值的数组
  15. [daily][ulimit][coredump] 快速简单粗暴的用coredump调试
  16. LeetCode--014--最长公共前缀(java)
  17. Python语言规范
  18. Docker集群管理(一)—— 基础docker+swarm+shipyard
  19. Ubuntukylin-14.04-desktop( 不带分区)安装步骤详解
  20. Effective STL 学习笔记14: Use reserve to avoid unnecessary reallocations.

热门文章

  1. MapGIS IGServer for java
  2. vue项目中使用element的dialog中引入ztree却不能初始化解决办法
  3. (转)基于TLS证书手动部署kubernetes集群(下)
  4. PHP的重载-使用魔术方法实现
  5. 初次打开jenkins页面一片空白的解决办法
  6. Linux 文件和目录的权限设置 - umask(默认权限),chmod(改变权限)
  7. Vagrant 入门 - 项目设置
  8. 16/7/14-MySQL-修改mysql5.6以上版本root密码
  9. (转)Linux下编译安装log4cxx
  10. Pikachu漏洞练习平台实验——越权漏洞(八)