Re: [PHP4BETA] static variables in classes?
| From: | Stanislav Malyshev | Date: | Wed, 08 Dec 1999 06:51:39 +0000 |
| Subject: | Re: [PHP4BETA] static variables in classes? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7655@lists.php.net to get a copy of this message | ||
TF>> I've looked through the list archives and manual but haven't found out
TF>> if php supports static variables in classes, does it?
AFAIK, it doesn't. But, I don't see how class variable Foo::bar is much
different from a global Foo_bar (except that the former is harder to
overwrite by mistake), so you can just use globals if you need.
--
Stanislav Malyshev stas@zend.com
+972-50-624945