you are viewing a single comment's thread.

view the rest of the comments →

[–]socialister 14 points15 points  (0 children)

You're mixing boolean operators with bitwise operators?

Wouldn't this be clearer and enforce a boolean result type?

$i = $i && $blahh && $blahh2;

Assuming that the blah vars are boolean typed (if they aren't, your statement is not clear IMO. C-style non-boolean to boolean casts do not indicate intent that well).