开发者

what does $this-> mean?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜