Re: define (true/false)

From: Date: Thu, 28 Jul 2005 12:41:25 +0000
Subject: Re: define (true/false)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-219490@lists.php.net to get a copy of this message
André Medeiros wrote:
On Wed, 2005-07-27 at 17:17 -0400, Sebastian wrote:
i never really used constants before so this may sound stupid.. when you define a constant using define() and want to return true/false is this logical: if($bars == 3) { define('BAR', 1); } then: if(BAR) {
...
That's an incorrect use for constants. Use variables for that =]
WHY?


« previous php.general (#219490) next »