php中 $this->...= ,&,的用法是什么
$this->srvMobile=$srvMobile;$this->srvMobile=&$srvMobile;$this->buddyID=$this->buddyA...
$this->srvMobile = $srvMobile;
$this->srvMobile = &$srvMobile;
$this->buddyID = $this->buddyArray['id'];
$s = serialize($this->sessionArr);
就题目的意思麻烦各位帮我解答下这几个语句。
还有=,==,===的区别是什么呢 展开
$this->srvMobile = &$srvMobile;
$this->buddyID = $this->buddyArray['id'];
$s = serialize($this->sessionArr);
就题目的意思麻烦各位帮我解答下这几个语句。
还有=,==,===的区别是什么呢 展开
1个回答
展开全部
$this->srvMobile = $srvMobile;
访问类成员srvMobile并且给其覆值,
$this->buddyID = $this->buddyArray['id'];
访问类成员buddyID并且给其覆值,其中的值为类成员方法buddyArray['id']所得的值
$s = serialize($this->sessionArr);
serialize($this->sessionArr)函数所得值覆给变量$s,其中$this->sessionArr为类成员essionArr
参考教程
http://www.php100.com/html/shipinjiaocheng/PHP100shipinjiaocheng/2009/0416/811.html
=是覆值
==是两个不区分类型的变量相比较
===是两个区分类弄的变量相比
访问类成员srvMobile并且给其覆值,
$this->buddyID = $this->buddyArray['id'];
访问类成员buddyID并且给其覆值,其中的值为类成员方法buddyArray['id']所得的值
$s = serialize($this->sessionArr);
serialize($this->sessionArr)函数所得值覆给变量$s,其中$this->sessionArr为类成员essionArr
参考教程
http://www.php100.com/html/shipinjiaocheng/PHP100shipinjiaocheng/2009/0416/811.html
=是覆值
==是两个不区分类型的变量相比较
===是两个区分类弄的变量相比
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询