<?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 => 'uk',
  ),
  '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 => 'List of Parser Tokens',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'uk',
    '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">
  Наступна таблиця демонструє поведінку
  <a href="language.types.php" class="link">типів</a> PHP та 
  <a href="language.operators.comparison.php" class="link">операторів
  порівняння</a>, як з м&#039;яким, так і зі строгим порівнянням. Ця інформація
  також стосується теми <a href="language.types.type-juggling.php" class="link">маніпуляції
  з типами</a>. Щоб створити цю таблицю, ми отримували натхнення від
  коментарів деяких користувачів та від роботи
  <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-форми не передають цілочисельний тип (int), дробовий тип (float) чи
   логічний тип (bool); вони передають тільки рядковий тип. Щоб перевірити, чи
   рядок має число, можна використовувати <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>. Будь-яке м&#039;яке чи строге порівняння цього значення
   з будь-яким іншим значенням, включаючи його самого, окрім <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>М&#039;яке порівняння через <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); ?>