Logical OperatorsTable 15-7. Logical Operators | Example | Name | Result |
|---|
| $a and $b | And | TRUE if both $a and $b are TRUE. | | $a or $b | Or | TRUE if either $a or $b is TRUE. | | $a xor $b | Xor | TRUE if either $a or $b is TRUE, but not both. | | ! $a | Not | TRUE if $a is not TRUE. | | $a && $b | And | TRUE if both $a and $b are TRUE. | | $a || $b | Or | TRUE if either $a or $b is TRUE. |
The reason for the two different variations of "and" and "or"
operators is that they operate at different precedences. (See
Operator
Precedence.)
|

 |
Links |
|
IX Web Hosting $6.45/mo- 400GB Diskspace
- 2500GB Bandwidth
- Host 8 Domains
- PHP Perl CGI SSI
- MySQL PostgreSQL
- 3 Free Domain For Life
- Additional costs for Windows plan + $2.50:ASP/.NET, Cold Fusion, ODBC/DSN, MSSQL
Bluefish $6.95/mo- 6GB Diskspace
- 100GB Bandwidth
- PHP Perl MySQL SSI CGI SSL
- Free Domain
- No Setup Fees
- No Hidden Fees
Dot5 Hosting $4.95/mo- 200GB Diskspace
- 2000GB Bandwidth
- Host 5 Domains
- CGI Ruby Perl PHP MySQL
- Free Domain Forever
|
 |



 |
Partners |
|
|
 |

|