SyntaxFix
Write A Post
Hire A Developer
Questions
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