variant_imp
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Performs a bitwise implication on two variants
Description
variant_imp(mixed $left, mixed $right): variant
Performs a bitwise implication operation.
Parameters
leftThe left operand.
rightThe right operand.
Variant-arith
Return Values
If left is | If right is | then the result is |
|---|---|---|
| true | true | true |
| true | false | false |
| true | null | true |
| false | true | true |
| false | false | true |
| false | null | true |
| null | true | true |
| null | false | null |
| null | null | null |
Errors/Exceptions
Throws a com_exception on failure.