[PHP-DEV] Re: Static vars in methods From: Andrei Zmievski (andrei <email protected>)
Date: 03/09/01

On Fri, 09 Mar 2001, Andi Gutmans wrote:
> By the way, if you need something that works you can just add the following
> line in your constructor:
> $this->mystatic =& $GLOBALS["__myclass_mystatic"];
>
> Then use $this->mystatic in all of your methods. It's not built-in but it
> should work pretty nicely.

Yes, it's a nice workaround.

-Andrei

Programming X-Windows is like trying to find
the square root of pi using roman numerals.
- Unknown

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>