Re: overwrite private class members in php5?

From: Date: Fri, 29 Jul 2005 10:24:44 +0000
Subject: Re: overwrite private class members in php5?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219584@lists.php.net to get a copy of this message
Norbert Wenzel wrote:
public function printVar() {
    echo($this->var);
}
I have to do a little correction, i wrote $this->$var to see the variable, otherwise i don't see anything.

« previous php.general (#219584) next »