<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.com.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.variant-not.php',
    1 => 'variant_not',
    2 => 'Performs bitwise not negation on a variant',
  ),
  'up' => 
  array (
    0 => 'ref.com.php',
    1 => 'COM Functions',
  ),
  'prev' => 
  array (
    0 => 'function.variant-neg.php',
    1 => 'variant_neg',
  ),
  'next' => 
  array (
    0 => 'function.variant-or.php',
    1 => 'variant_or',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/functions/variant-not.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.variant-not" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_not</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">variant_not</span> &mdash; <span class="dc-title">Performs bitwise not negation on a variant</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.variant-not-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>variant_not</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.variant.php" class="type variant">variant</a></span></div>

  <p class="para rdfs-comment">
   Performs bitwise not negation on <code class="parameter">value</code> and
   returns the result.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-not-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">value</code></dt>
     <dd>
      <p class="para">
       The variant.
      </p>
     </dd>
    
   </dl>
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
<p class="para">
 As with all the variant arithmetic functions, the parameters for this function
 can be either a PHP native type (integer, string, floating point, boolean or
 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>), or an instance of a COM, VARIANT or DOTNET class.  PHP native types
 will be converted to variants using the same rules as found in the constructor
 for the <a href="class.variant.php" class="xref">variant</a> class.  COM and DOTNET objects
 will have the value of their default property taken and used as the variant value.
</p>
<p class="para">
 The variant arithmetic functions are wrappers around the similarly named
 functions in the COM library; for more information on these functions, consult
 the MSDN library.  The PHP functions are named slightly differently; for example
 <span class="function"><a href="function.variant-add.php" class="function">variant_add()</a></span> in PHP corresponds to <code class="literal">VarAdd()
 </code> in the MSDN documentation.
</p>
</p></blockquote>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-not-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the bitwise not negation. If <code class="parameter">value</code> is
   <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, the result will also be <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.variant-not-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   Throws a <span class="classname"><a href="class.com-exception.php" class="classname">com_exception</a></span> on failure.
  </p>
 </div>


</div><?php manual_footer($setup); ?>