Re: Convention: true/false

From: Date: Tue, 26 Jun 2001 08:32:24 +0000
Subject: Re: Convention: true/false
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335633@lists.php.net to get a copy of this message
> How about the convenstion that true/false should always be written as: > > <constant>TRUE</constant> > and idem for false? > > It is also possible to make that a snippet, but I think that'd be > overkill... What do you think of it? > > By the way: typical example of where a good script can be used :) In fact > just > a multifile regex of course. > /(<(literal|constant)>)?false(</\2>)?/i => > <constant>FALSE</constant> for > example. TRUE *is not* a constant. There is a boolean type in PHP 4. TRUE *was* a constant in PHP 3... Goba

« previous php.doc (#969335633) next »