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
精彩评论