05-14-2009, 11:21 PM
|
#10 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Salathe
If you're going to do that (don't!) then always wrap parentheses around the component parts even if they're not necessary for making things work!
That reminds of questions like: (you can ignore the capitals for this)
PHP Code:
// What are $a, $b, $c and $d?
$a = FALSE OR TRUE;
$b = FALSE || TRUE;
$c = TRUE AND FALSE;
$d = TRUE && FALSE;
|
hmm....I'm about to look very bad but.....
$a = true
$b = false
$c = false
$d = true
Please be kind to me!!

|
|
|
|