Logic dictates. PHP Logical operators are pretty simple if you’ve taken Boolean Algebra or are familiar with logic-gates. You might have even been exposed to logic in Philosophy. If you’re not familiar with logic, this may be a bit of a shock for you. Only joking. It’s just another operator in our disposal that evaluates to either true or false. We looked at how to test whether an expression is true or not, but how can we test whether multiple expressions are true? With logical operators, that’s how. There are a few operators in PHP that test the truth value