Re: what is -- $this variable -> $this other variable -- means?
| From: | Marek Kilimajer | 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: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();MK> read about variable variables Wouldn't that be $$variable? :) It looks like an object method request to me.What does $this variable -> $this other variable Means?