Re: TRUE or true?

From: Date: Fri, 23 Apr 2004 00:12:41 +0000
Subject: Re: TRUE or true?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184322@lists.php.net to get a copy of this message
On Thu, 2004-04-22 at 19:51, Richard Davey wrote: > Hi all, > > I know from a code point of view it makes no difference at all (i.e. > they both work), but which format do you all use for booleans? > > TRUE / FALSE > > or > > true / false > > The PHP manual uses both :) Zend Studio tries to auto-complete to the > lower-case variant. > > I'm not seeking a big debate on this, more of an overall poll-count > (and any sound arguments for A vs. B, or should I say T vs. t) true, false, and null are more correct from a keyword perspective since you would use foreach, if, else, while, and not FOREACH, IF, ELSE, and WHILE. The capitalized versions of TRUE, FALSE, and NULL are in the style of C/C++ preprocessor macros (for those who can't switch between lowercase and uppercase :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#184322) next »