Re: Constant Scope PHP5

From: Date: Fri, 22 Aug 2003 19:34:58 +0000
Subject: Re: Constant Scope PHP5
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4131@lists.php.net to get a copy of this message
"Arjen Brouwer" <arjenjb@quicknet.nl> escreveu na mensagem news:001b01c368a1$775b2070$6402a8c0@sleepert... > Should'nt this work? Currently it reports an error about a undefined constant. > > <? > class Test { > const FOO = 100; > var $bar = FOO; > } > > $Test = new Test; > echo $Test->bar; > ?> > > Ciao, > Arjen > IMHO it should. Cristiano Duarte.

« previous php.internals (#4131) next »