PHP » Operators » OR

Syntax:
expression1 OR expression2
expression1
Operand 1.
expression2
Operand 2.

Logical OR.

Like "||", this is a logical OR operator, but has a very low precedence.

Examples

Code:
<?php

if (TRUE OR FALSE)
   if (5 == 4 OR 2 > 1)
      print "TRUE!";

?>
Output:
TRUE!
Explanation:

Both if statements evaluate to true.