Home > Article > Backend Development > The difference between OR and || AND and && in php
Because the assignment operation has a higher priority than AND and OR, so first Assignment; is lower than && and ||, so logical operators are executed first, logical operations first, and then assignment. |