Re: Referencing a "constant" class variable

From: Date: Wed, 06 Oct 2004 19:44:59 +0000
Subject: Re: Referencing a "constant" class variable
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-198771@lists.php.net to get a copy of this message
> 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

« previous php.general (#198771) next »