Re: Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux