I have a codebase where developers decided to use AND and OR instead of && and ||.
AND
OR
&&
||
I know that there is a
Since and has lower precedence than = you can use it in condition assignment:
and
=
if ($var = true && false) // Compare true with false and assign to $var if ($var = true and false) // Assign true to $var and compare $var to false