Re: About Classes and Scope

From: Date: Wed, 18 Feb 2004 09:31:15 +0000
Subject: Re: About Classes and Scope
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178078@lists.php.net to get a copy of this message
* and then Nick Wilson declared.... > <?php > $myconfig=TRUE; > > class myclass { > > if($myconfig) { > var $something=1; > } > } > > I know that that is not the way it should be done though. What is the > best way to do this? On a hunch, i think i've found the answer: http://www.php.net/manual/en/language.constants.php Right? -- Nick W

« previous php.general (#178078) next »