Re: Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I
still want to know)
| From: | Rasmus Lerdorf | Date: | Thu, 05 May 2005 06:07:45 +0000 |
| Subject: | Re: Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know) |
||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214487@lists.php.net to get a copy of this message | ||
Jon M. wrote:
> So, are you saying that it is absolutely "PHP-illegal" to do:
Yes, it is illegal. Inside a class definition you can define properties
like this, but for regular variables it is simply not supported. And it
makes no sense. If you can't stop your hands from typing this stuff, do
this:
#var $varName;
-Rasmus