php8.5
Home/ Manual/ com / functions/ variant_imp

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

left

The left operand.

right

The right operand.

Variant-arith

Return Values

If left isIf right isthen the result is
truetruetrue
truefalsefalse
truenulltrue
falsetruetrue
falsefalsetrue
falsenulltrue
nulltruetrue
nullfalsenull
nullnullnull

Errors/Exceptions

Throws a com_exception on failure.

Source: reference/com/functions/variant-imp.xml · from the official PHP manual (php/doc-en)