&符 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'); } }
&的作用为传引用
上一篇: VUE组件之间的通信案例