Re: what is -- $this variable -> $this other variable -- means?

From: Date: Thu, 02 Jun 2005 00:09:12 +0000
Subject: Re: what is -- $this variable -> $this other variable -- means?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-216186@lists.php.net to get a copy of this message
Richard Davey wrote:
Hello Marek, Wednesday, June 1, 2005, 9:48:36 PM, you wrote:
What does $this variable -> $this other variable Means?
MK> read about variable variables Wouldn't that be $$variable? :) It looks like an object method request to me.
I thought this was covered in that section too :) I didn't find where it's fully documented, but it's similar: class A { var $variable = "I'm objects's variable\n"; function method() { echo "I'm object's method\n"; } } $a = new A; $var = 'variable'; echo $a->$var; $meth = 'method'; echo $a->$meth();

« previous php.general (#216186) next »