RE: [PHP] TRUE or true?

2004-04-23 Thread Shaunak Kashyap
lowercase

> -Original Message-
> From: Richard Davey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 7:52 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] TRUE or true?
> 
> 
> 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)
> 
> -- 
> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] TRUE or true?

2004-04-22 Thread Marek Kilimajer
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)
lowercase - I don't want to hold shift ;)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] TRUE or true?

2004-04-22 Thread Robert Cummings
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.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php