Logical operators. Table7-3.LogicalOperators (Table 7-3 logical operators) examplenameresult? FONT $ aand $ bAndTrueofboth $ aand $ baretrue .? FONT $ aor $ bOr? FONTTrueifeither $ aor $ B Table 7-3. Logical Operators (Table 7-3 Logical Operators)
Example name result? /FONT>
$ A and $ B And True of both $ a and $ B are true .? /FONT>
$ A or $ B Or? /FONT> True if either $ a or $ B is true .? /FONT>
$ A xor $ B Or? /FONT> True if either $ a or $ B is true, but not both .? /FONT>
! $ A Not? /FONT> True if $ a is not true .? /FONT>
$ A & $ B And? /FONT> True of both $ a and $ B are true .? /FONT>
$ A | $ B Or? /FONT> True if either $ a or $ B is true.
The changes to the two different "and" and "or" operators are actually caused by different operation priorities. (Refer to the following content .)
Http://www.bkjia.com/PHPjc/531974.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/531974.htmlTechArticleTable 7-3. Logical Operators (Table 7-3 Logical Operators) example name result? /FONT> $ a and $ B And True of both $ a and $ B are true .? /FONT> $ a or $ B Or? /FONT> True if either $ a or $ B...