Watch out for the difference of priority between 'and vs &&' or '|| vs or':<?php$bool = true && false;var_dump($bool); // false, that's expected$bool = true and false;var_dump($bool); // true, ouch!?>Because 'and/or' have lower priority than '=' but '||/&&' have higher.