Home > PHP > Function > COM > variant_or()

variant_or()

variant_or - Performs a logical disjunction on two variants

Syntax

mixed variant_or (mixed $left, mixed $right)

Arguments

  • left - The left operand.
  • right - The right operand.

Description

Performs a bitwise OR operation. Note that this is slightly different from a regular OR operation.

Version

PHP 5

Return value

Variant OR Rules If left is If right is then the result is TRUE TRUE TRUE TRUE FALSE TRUE TRUE NULL TRUE FALSE TRUE TRUE FALSE FALSE FALSE FALSE NULL NULL NULL TRUE TRUE NULL FALSE NULL NULL NULL NULL