variant_not

(PHP 5, PHP 7, PHP 8)

variant_notPerforms bitwise not negation on a variant

說明

variant_not(mixed $value): variant

Performs bitwise not negation on value and returns the result.

參數(shù)

value

The variant.

注意:

對于所有變量運算函數(shù),本函數(shù)的參數(shù)可以是 PHP 內置的類型(整數(shù),字符串,浮點數(shù),布爾型或者 null),或者是一個 COM,VARIANT 或者 DOTNET 類的實例。PHP 內置類型將會使用和構造variant類相同的規(guī)則轉換成變量。COM 和 DOTNET 對象的值將會取其默認屬性并被當成變量值使用。

變量運算函數(shù)是同名函數(shù)在 COM 庫中的外包;有關此類函數(shù)的更多信息參見 MSDN 庫。PHP 函數(shù)命名有少許區(qū)別,例如 PHP 中的 variant_add() 對應于 MSDN 文檔中的 VarAdd()。

返回值

Returns the bitwise not negation. If value is null, the result will also be null.

錯誤/異常

Throws a com_exception on failure.