call_user_func 使用方法
来源:互联网 发布:最好的p2p下载软件 编辑:程序博客网 时间:2024/05/17 18:02
<?php
header("Content-type:text/html;charset=utf-8");
class user{
function select($id)
{
mysql_connect('localhost','root','123');
mysql_select_db('bkw_guest');
mysql_query('set names utf-8');
$rs=mysql_query("select * from bkw_subject limit 0,10 where sujbect_id=$id");
while($row=mysql_fetch_row($rs)){
$rows[]= $row;
}
return $rows;
}
}
function sysHello($user){
echo 'hello,'.$user;
}
$name="matao";
$rows=call_user_func(array('user','select'),4);//调用类的方法,并传递参数
print_r($rows);
echo "/n";
echo call_user_func('sysHello',$name);//调用参数 ,并传递参数
?>
- call_user_func 使用方法
- PHP函数详解:call_user_func()使用方法
- PHP函数详解:call_user_func()使用方法
- PHP函数详解:call_user_func()使用方法
- PHP函数详解:call_user_func()使用方法
- call_user_func()
- call_user_func
- call_user_func
- call_user_func
- call_user_func
- call_user_func
- call_user_func
- call_user_func
- call_user_func()
- PHP -- call_user_func()
- php call_user_func
- call_user_func()详解
- call_user_func和call_user_func_array
- 时间是最珍贵最最需要把握的!
- linux下解压命令大全
- 未找到反序列化‘DataDynamics.BarCode.BarEngine+BarEngineException’类型对象的构造函数
- make: warning: Clock skew detected. Your build may be incomplete
- Java应用中表达式解析器(Java Cup/JFlex)生成器的介绍及示例
- call_user_func 使用方法
- 有利于SEO的DIV+CSS的命名规则
- 自言自语
- eval
- GridView网能分页代码
- Android 系统编译资源文件
- 传闻百度布局客户端 开始研发浏览器
- C++ 异常处理 入门
- struts2学习之struts2 + jquery + json进行AJAX请求