php中 $this->...= ,&,的用法是什么$this->srvMobile = $srvMobile;$this->srvMobile = &$srvMobile;$this->buddyID = $this->buddyArray['id'];$s = serialize($this->sessionArr);就题目的意思麻烦各位帮我解答下这几个语句.还有=,==,==
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 21:03:03
php中 $this->...= ,&,的用法是什么$this->srvMobile = $srvMobile;$this->srvMobile = &$srvMobile;$this->buddyID = $this->buddyArray['id'];$s = serialize($this->sessionArr);就题目的意思麻烦各位帮我解答下这几个语句.还有=,==,==
php中 $this->...= ,&,的用法是什么
$this->srvMobile = $srvMobile;
$this->srvMobile = &$srvMobile;
$this->buddyID = $this->buddyArray['id'];
$s = serialize($this->sessionArr);
就题目的意思麻烦各位帮我解答下这几个语句.
还有=,==,===的区别是什么呢
php中 $this->...= ,&,的用法是什么$this->srvMobile = $srvMobile;$this->srvMobile = &$srvMobile;$this->buddyID = $this->buddyArray['id'];$s = serialize($this->sessionArr);就题目的意思麻烦各位帮我解答下这几个语句.还有=,==,==
$this->srvMobile = $srvMobile;
访问类成员srvMobile并且给其覆值,
$this->buddyID = $this->buddyArray['id'];
访问类成员buddyID并且给其覆值,其中的值为类成员方法buddyArray['id']所得的值
$s = serialize($this->sessionArr);
serialize($this->sessionArr)函数所得值覆给变量$s,其中$this->sessionArr为类成员essionArr
参考教程
=是覆值
==是两个不区分类型的变量相比较
===是两个区分类弄的变量相比