Re: Referencing a "constant" class variable

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

 



> reference like MyClass::MyVar. Don't use PHP5 conventions in PHP4!

I'm curious if you tested your code?  Did it work?  If so, what
version of PHP are you using?  I copied and pasted the code
you provided and got the following error:

Parse error: parse error, expecting `','' or `';'' in
/usr/local/etc/httpd/domains/eazypro.com/interactive/cron_scripts/test/rate_
version.php on line 9

with line 9 being this line:

    var $MyVar = MyEnums::thisVar;

thnx,
Chris

-- 
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