您的位置:首页 > 编程语言 > PHP开发

php 对象可以作为参数来传递

2013-05-04 14:42 260 查看
<?php
define('MY_SESS_TIME', 3600); //SESSION 生存时长
//类定义
class test
{
public $he="hechunhau";
}
function Ftest($test){
echo $test->he;
}
$in=new test();
Ftest($in)
?>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: