<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/appendices.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'types.comparisons.php',
    1 => 'PHP type comparison tables',
    2 => 'PHP type comparison tables',
  ),
  'up' => 
  array (
    0 => 'appendices.php',
    1 => 'Appendices',
  ),
  'prev' => 
  array (
    0 => 'transports.unix.php',
    1 => 'Unix Domain: Unix and UDG',
  ),
  'next' => 
  array (
    0 => 'tokens.php',
    1 => 'List of Parser Tokens',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/comparisons.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="types.comparisons" class="appendix">
 <h1 class="title">PHP type comparison tables</h1>

 <p class="para">
  The following tables demonstrate behaviors of PHP 
  <a href="language.types.php" class="link">types</a> and 
  <a href="language.operators.comparison.php" class="link">comparison 
  operators</a>, for both loose and strict comparisons.  This 
  supplemental is also related to the manual section on 
  <a href="language.types.type-juggling.php" class="link">type juggling</a>.
  Inspiration was provided by various user comments and by the work over at
  <a href="http://www.blueshoes.org/en/developer/php_cheat_sheet/" class="link external">&raquo;&nbsp;BlueShoes</a>.
 </p>
 <p class="para">
  Before utilizing these tables, it&#039;s important to understand types and their
  meanings.  For example, <code class="literal">&quot;42&quot;</code> is a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 
  while <code class="literal">42</code> is an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.  <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> is a
  <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> while <code class="literal">&quot;false&quot;</code> is a
  <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
 </p>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   HTML Forms do not pass integers, floats, or booleans; they pass strings.
   To find out if a string is numeric, you may use
   <span class="function"><a href="function.is-numeric.php" class="function">is_numeric()</a></span>.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   Simply doing <code class="literal">if ($x)</code> while <var class="varname">$x</var> is
   undefined will generate an error of level <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong>.
   Instead, consider using <span class="function"><a href="function.empty.php" class="function">empty()</a></span> or
   <span class="function"><a href="function.isset.php" class="function">isset()</a></span> and/or initialize your variables.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   Some numeric operations can result in a value represented by the constant 
   <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>. Any loose or strict comparisons of this value 
   against any other value, including itself, but except <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, will have a result of <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>. 
   (i.e. <code class="literal">NAN != NAN</code> and <code class="literal">NAN !== NAN</code>)
   Examples of operations that produce <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> include 
   <code class="literal">sqrt(-1)</code>, <code class="literal">asin(2)</code>, and 
   <code class="literal">acosh(0)</code>.
  </p>
 </p></blockquote>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Comparisons of <var class="varname">$x</var> with PHP functions</strong></caption>
   
    <thead>
     <tr>
      <th>Expression</th>
      <th><span class="function"><a href="function.gettype.php" class="function">gettype()</a></span></th>
      <th><span class="function"><a href="function.empty.php" class="function">empty()</a></span></th>
      <th><span class="function"><a href="function.is-null.php" class="function">is_null()</a></span></th>
      <th><span class="function"><a href="function.isset.php" class="function">isset()</a></span></th>
      <th><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> : <code class="literal">if($x)</code></th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><code class="literal">$x = &quot;&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = null;</code></td>
      <td><span class="type"><a href="language.types.null.php" class="type NULL">NULL</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">var $x;</code></td>
      <td><span class="type"><a href="language.types.null.php" class="type NULL">NULL</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><var class="varname">$x</var> is undefined</td>
      <td><span class="type"><a href="language.types.null.php" class="type NULL">NULL</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = [];</code></td>
      <td><span class="type"><a href="language.types.array.php" class="type array">array</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = [&#039;a&#039;, &#039;b&#039;];</code></td>
      <td><span class="type"><a href="language.types.array.php" class="type array">array</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = false;</code></td>
      <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = true;</code></td>
      <td><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = 1;</code></td>
      <td><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = 42;</code></td>
      <td><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = 0;</code></td>
      <td><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = -1;</code></td>
      <td><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = &quot;1&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = &quot;0&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = &quot;-1&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = &quot;php&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = &quot;true&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">$x = &quot;false&quot;;</code></td>
      <td><span class="type"><a href="language.types.string.php" class="type string">string</a></span></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">
  <table id="types.comparisions-loose" class="doctable table">
   <caption><strong>Loose comparisons with <code class="literal">==</code></strong></caption>
   
    <thead>
     <tr>
      <th> </th>
      <th><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></th>
      <th><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></th>
      <th><code class="literal">1</code></th>
      <th><code class="literal">0</code></th>
      <th><code class="literal">-1</code></th>
      <th><code class="literal">&quot;1&quot;</code></th>
      <th><code class="literal">&quot;0&quot;</code></th>
      <th><code class="literal">&quot;-1&quot;</code></th>
      <th><strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></th>
      <th><code class="literal">[]</code></th>
      <th><code class="literal">&quot;php&quot;</code></th>
      <th><code class="literal">&quot;&quot;</code></th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">1</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">0</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>*</td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>*</td>
     </tr>

     <tr>
      <td><code class="literal">-1</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;1&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;0&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;-1&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">[]</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;php&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>*</td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>*</td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

    </tbody>
   
  </table>

  * <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> prior to PHP 8.0.0.
 </p>

 <p class="para">
  <table id="type.comparisons-strict" class="doctable table">
   <caption><strong>Strict comparisons with <code class="literal">===</code></strong></caption>
   
    <thead>
     <tr>
      <th> </th>
      <th><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></th>
      <th><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></th>
      <th><code class="literal">1</code></th>
      <th><code class="literal">0</code></th>
      <th><code class="literal">-1</code></th>
      <th><code class="literal">&quot;1&quot;</code></th>
      <th><code class="literal">&quot;0&quot;</code></th>
      <th><code class="literal">&quot;-1&quot;</code></th>
      <th><strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></th>
      <th><code class="literal">[]</code></th>
      <th><code class="literal">&quot;php&quot;</code></th>
      <th><code class="literal">&quot;&quot;</code></th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">1</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">0</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">-1</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;1&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;0&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;-1&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">[]</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;php&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
     </tr>

     <tr>
      <td><code class="literal">&quot;&quot;</code></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></td>
     </tr>

    </tbody>
   
  </table>

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