Be aware of assignments with conditionals. The assignment operator is stronger as 'and', 'or' and 'xor'.
<?php
$x = true and false; //$x will be true
$y = (true and false); //$y will be false
?>
Be aware of assignments with conditionals. The assignment operator is stronger as 'and', 'or' and 'xor'.
<?php
$x = true and false; //$x will be true
$y = (true and false); //$y will be false
?>