variant_or

(PHP 5, PHP 7)

variant_orPerforms a logical disjunction on two variants

说锟斤拷

variant_or ( mixed $left , mixed $right ) : mixed

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

锟斤拷锟斤拷

left

The left operand.

right

The right operand.

Note:

锟斤拷锟斤拷锟斤拷锟叫憋拷锟斤拷锟斤拷锟姐函锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥诧拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷锟矫碉拷锟斤拷锟酵o拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟酵伙拷锟斤拷 NULL锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷 COM锟斤拷VARIANT 锟斤拷锟斤拷 DOTNET 锟斤拷锟绞碉拷锟斤拷锟絇HP 锟斤拷锟斤拷锟斤拷锟酵斤拷锟斤拷使锟矫和癸拷锟斤拷VARIANT锟斤拷锟斤拷同锟侥癸拷锟斤拷转锟斤拷锟缴憋拷锟斤拷锟斤拷COM 锟斤拷 DOTNET 锟斤拷锟斤拷锟街碉拷锟斤拷锟饺★拷锟侥拷锟斤拷锟斤拷圆锟斤拷锟斤拷锟斤拷杀锟斤拷锟街凳癸拷谩锟�

锟斤拷锟斤拷锟斤拷锟姐函锟斤拷锟斤拷同锟斤拷锟斤拷锟斤拷锟斤拷 COM 锟斤拷锟叫碉拷锟斤拷锟斤拷锟斤拷泄卮锟斤拷嗪拷锟斤拷母锟斤拷锟斤拷锟较拷渭锟� MSDN 锟解。PHP 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟叫碉拷 variant_add() 锟斤拷应锟斤拷 MSDN 锟侥碉拷锟叫碉拷 VarAdd()锟斤拷

锟斤拷锟斤拷值

Variant OR Rules
If left is If right is then the result is
TRUETRUETRUE
TRUEFALSETRUE
TRUENULLTRUE
FALSETRUETRUE
FALSEFALSEFALSE
FALSENULLNULL
NULLTRUETRUE
NULLFALSENULL
NULLNULLNULL

锟轿硷拷

  • variant_and() - Performs a bitwise AND operation between two variants
  • variant_xor() - Performs a logical exclusion on two variants