We participate in the Amazon Service LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com

and, it’s not what you expected
$x = true and false;
var_dump($x);

This one is interesting. In PHP, you can use && or and to do a logical comparison.

However, due to the Operator Precedence rules, and actually has lower precedence than =, where && has higher!

That means that the value of $x will be true.

Two ways to fix this:
$x = (true and false); // evaluates to false
$x = true && false; // evaluates to false