(PHP 5, PHP 7)
variant_or — Performs a logical disjunction on two variants
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()锟斤拷
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 |