Re: Convention: true/false

From: Date: Tue, 26 Jun 2001 09:26:40 +0000
Subject: Re: Convention: true/false
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335636@lists.php.net to get a copy of this message
> TRUE *is not* a constant. There is a boolean type in PHP 4. > TRUE *was* a constant in PHP 3... It is still defined as constant, just like NULL. (zend_constants.c:117 : true/false constants) THough you can argue that it's better to see it as being a special keyword. It is a constant in the sense that its value never changes. And, though layout shouldn't be an issue when it comes to xml, I like the makeup op <constant> better in case of values like true... So, I'm still in favor of <constant>. Thats 1 contra, 1 pro. > Goba > > Jeroen van Wolffelaar Jeroen@A-Eskwadraat.nl http://www.A-Eskwadraat.nl/~jeroen

« previous php.doc (#969335636) next »