PHP » Operators » ||

Syntax:
expression1 || expression2
expression1
First operand.
expression2
Second operand.

Logical OR.

The logical OR operator returns TRUE if one or both operands evaluate to TRUE.

Examples

Code:
<?php

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

?>
Output:
TRUE!
Explanation:

Both if statements are true.