Introduction: This is a detailed page of PHP logical operators. It introduces the knowledge, skills, experience, and some PHP Source Code related to PhP.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 326914 'rolling = 'no'>
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 .)
More articles on "php logical operators"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/326914.html pageno: 13.