The && and || logical operators seem to have more general recognition and background usage, although the and and or form of the same logical operators is taking more and more acceptation for the sake of readability.
So here is a list for the results when evaluating the expressions in PHP. I am sure that this can be applied to a bunch of other languages. (I think it is a little bit superficial to say that it apply to all programming language since I only know some of them).
Logical operator AND ( && )
1 2 3 4 5 6 7 |
false and false => false false and true => false true and false => false true and true => true |
Logical operator OR ( || )
1 2 3 4 5 6 7 |
false or false => false false or true => true true or false => true true or true => true |
Logical operator NOT ( ! )
1 2 3 |
!false => true !true => false |