![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
$this->dao=& $dao;
是怎么回事呀 &$ 是传地址吗。传了后两个变量地址一下?
可是他们本身是一个变量呀
[PHP]
<?php
/**
* Fetches "products" from the database
*/
class ProductModel {
/**
* Private
* $dao an instance of the DataAccess class
*/
var $dao;
//! A constructor.
/**
* Constucts a new ProductModel object
* @param $dbobject an instance of the DataAccess class
*/
function ProductModel (&$dao) {
$this->dao=& $dao;
}
.
.
.
[/PHP]
提问者:skybyte 08-14 10:10
答复

