欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

&符 php中引用分析(代码实例)

程序员文章站 2022-10-31 15:37:14
&符 php中引用 public function __construct(){ $this->log('initialize paiguan interface...
&符 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');
		}
	}

&的作用为传引用