<?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 => 'ru',
  ),
  'this' => 
  array (
    0 => 'types.comparisons.php',
    1 => 'Таблицы сравнения типов PHP',
    2 => 'Таблицы сравнения типов PHP',
  ),
  'up' => 
  array (
    0 => 'appendices.php',
    1 => 'Приложения',
  ),
  'prev' => 
  array (
    0 => 'transports.unix.php',
    1 => 'Сокеты Unix-домена: UNIX и UDG',
  ),
  'next' => 
  array (
    0 => 'tokens.php',
    1 => 'Список токенов парсера',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    '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</h1>

 <p class="para">
  Следующие таблицы показывают работу PHP
  <a href="language.types.php" class="link">с типами переменных</a>
  <a href="language.operators.comparison.php" class="link">и операторами сравнения</a>
  при слабых и строгих сравнениях. Эта информация также относится
  к разделу документации <a href="language.types.type-juggling.php" class="link">по приведению типов</a>.
  Написать раздел разработчиков PHP воодушивили комментарии пользователей и работа
  над фреймворком <a href="http://www.blueshoes.org/en/developer/php_cheat_sheet/" class="link external">&raquo;&nbsp;BlueShoes</a>.
 </p>
 <p class="para">
  Перед началом работы с таблицами вспомним базовую информацию о типах.
  Наример, <code class="literal">&quot;42&quot;</code> — строка (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>),
  а <code class="literal">42</code> — целое число (<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> —
  логическое значение (<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>), а <code class="literal">&quot;false&quot;</code> — строка (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>).
 </p>
 <blockquote class="note"><p><strong class="note">Замечание</strong>: 
  <p class="para">
   HTML-формы не передают логические переменные, целые или дробные числа:
   из форм приходят только строки. Функция <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">Замечание</strong>: 
  <p class="para">
   Выражение <code class="literal">if ($x)</code>, если переменную <var class="varname">$x</var>
   не определили, сгенерирует ошибку уровня <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong>,
   поэтому переменную сначала инициализируют или в первом условии проверяют переменную
   языковой конструкцией <span class="function"><a href="function.empty.php" class="function">empty()</a></span> или <span class="function"><a href="function.isset.php" class="function">isset()</a></span>.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Замечание</strong>: 
  <p class="para">
   Отдельные арифметические операции возвращают значение,
   которое представляет константа <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> (англ. Not A Number,
   нечисло). Строгое или нестрогое сравнение такого значения
   с другим, включая его само, но исключая <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, вернёт <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>:
   <code class="literal">NAN != NAN</code> и <code class="literal">NAN !== NAN</code>.
   Примеры операций, которые возвращают константу <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>:
   <code class="literal">sqrt(-1)</code>, <code class="literal">asin(2)</code> и <code class="literal">acosh(0)</code>.
  </p>
 </p></blockquote>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Сравнение типов переменной <var class="varname">$x</var> и результатов функций PHP, связанных с типами</strong></caption>
   
    <thead>
     <tr>
      <th>Выражение</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> не определена</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>Гибкое сравнение через оператор <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> до PHP 8.0.0.
 </p>

 <p class="para">
  <table id="type.comparisons-strict" class="doctable table">
   <caption><strong>Жёсткое сравнение через оператор <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); ?>