&符 php中引用

public function __construct(){
$this->log('initialize paiguan interface');


$this->CI = &get_instance();
$this->input = &$this->CI->input;
$this->load = &$this->CI->load;
$this->CI->load->library('socketclient');
$this->CI->load->library('xml');
$this->socket = &$this->CI->socketclient;
$this->xml = &$this->CI->xml;
$this->log('initialize MIDDB');
$this->middb = $this->CI->load->database('middb',TRUE);
if(!$this->middb){
$this->error('load middb database error');
}

}



&的作用爲傳引用

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章