View Single Post
Old 05-14-2009, 11:21 PM   #10 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
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!!

allworknoplay is offline  
Reply With Quote