getMyVar() === false) { echo "true"; } echo $this->getMyVar(); var_dump($this->myVar); } public function getMyVar() { return $this->myVar; } } ?>