开发者

what does $this-> mean?

开发者 https://www.devze.com 2023-03-25 17:21 出处:网络
What is the function of $this-> operator here? is it point that variable? Can someone explain the code below:

What is the function of $this-> operator here? is it point that variable?

Can someone explain the code below:

if(isset($this->mDbPort))
{
  $this->mDbHost .= ":"开发者_JAVA百科 . $this->mDbPort;
}


$this-> refers to the object instance.

$this->mDbPort refers to the mDbPort property of the object this code is a part of.

PHP Manual :: Objects and Classes

0

精彩评论

暂无评论...
验证码 换一张
取 消