[PHP3] class methods and vars From: Andrey Zmievski (zmievski <email protected>)
Date: 12/31/98

If I wanted to access class vars from class functions dynamically, can I do
this?

class test
{
        var $abc = "some value";

        function p()
        {
                $var = "abc";
                print ${"this->".$var}
        }
}

Doesn't seem to work...

-Andrey
* E Pluribus UNIX. *

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>