&符 php中引用分析(代码实例)
程序员文章站
2022-05-18 15:09:52
&符 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'); } }
&的作用为传引用
下一篇: linux一个网卡添加多个虚IP