<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.types.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'language.types.null.php',
    1 => 'NULL',
    2 => 'NULL',
  ),
  'up' => 
  array (
    0 => 'language.types.php',
    1 => 'Типи',
  ),
  'prev' => 
  array (
    0 => 'language.types.type-system.php',
    1 => 'Type System',
  ),
  'next' => 
  array (
    0 => 'language.types.boolean.php',
    1 => 'Логічний (Booleans)',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/types/null.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.types.null" class="sect1">
 <h2 class="title">NULL</h2>
  
 <p class="para">
  The <span class="type"><a href="language.types.null.php" class="type null">null</a></span> type is PHP&#039;s unit type, i.e. it has only one value:
  <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
 </p>

 <p class="para">
  Undefined, and <span class="function"><a href="function.unset.php" class="function">unset()</a></span> variables will resolve to the
  value <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
 </p>
  
 <div class="sect2" id="language.types.null.syntax">
  <h3 class="title">Syntax</h3>

  <p class="para">
   There is only one value of type <span class="type"><a href="language.types.null.php" class="type null">null</a></span>, and that is the
   case-insensitive constant <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
  </p>

  <div class="informalexample">
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$var </span><span style="color: #007700">= </span><span style="color: #0000BB">NULL</span><span style="color: #007700">;       <br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>
 
 <div class="sect2" id="language.types.null.casting">
  <h3 class="title">Casting to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></h3>

  <p class="para">
   <div class="warning"><strong class="warning">Увага</strong><p class="simpara">Цей функціонал
<em>ЗАСТАРІВ</em>, починаючи з PHP 7.2.0, та
<em>ВИЛУЧЕНИЙ</em> в PHP 8.0.0. Вкрай не рекомендується на нього
покладатися.</p></div>
  </p>

  <p class="para">
   Casting a variable to <span class="type"><a href="language.types.null.php" class="type null">null</a></span> using <code class="literal">(unset) $var</code>
   will <em>not</em> remove the variable or unset its value.
   It will only return a <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> value.
  </p>

 </div>

 <div class="sect2">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.is-null.php" class="function">is_null()</a></span></li>
    <li><span class="function"><a href="function.unset.php" class="function">unset()</a></span></li>
   </ul>
  </p>
 </div>

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