<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'types.comparisons.php',
    1 => 'Comparaci&oacute;n de tipos en PHP',
    2 => 'Comparaci&oacute;n de tipos en PHP',
  ),
  'up' => 
  array (
    0 => 'appendices.php',
    1 => 'Ap&eacute;ndices',
  ),
  'prev' => 
  array (
    0 => 'transports.unix.php',
    1 => 'Dominio Unix: UNIX y UDG',
  ),
  'next' => 
  array (
    0 => 'tokens.php',
    1 => 'Lista de tokens del analizador',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    '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">Comparación de tipos en PHP</h1>

 <p class="para">
  La tabla siguiente resume los diferentes comportamientos de PHP
  con los <a href="language.types.php" class="link">tipos</a> y
  <a href="language.operators.comparison.php" class="link">operadores de comparación</a>,
  estricta o amplia. Esta tabla también está relacionada con el
  <a href="language.types.type-juggling.php" class="link">transtipado</a>.
  Fue inspirada por diferentes comentarios de usuarios,
  y por el trabajo realizado en <a href="http://www.blueshoes.org/en/developer/php_cheat_sheet/" class="link external">&raquo;&nbsp;BlueShoes</a>.
 </p>
 <p class="para">
  Antes de utilizar estas tablas, es importante comprender los tipos
  y su significado. Por ejemplo, <code class="literal">&quot;42&quot;</code> es un
  <span class="type"><a href="language.types.string.php" class="type string">string</a></span>, mientras que <code class="literal">42</code> es un
  <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> es <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> mientras que
  <code class="literal">&quot;false&quot;</code> es un <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
 </p>
 <blockquote class="note"><p><strong class="note">Nota</strong>: 
  <p class="para">
   Los formularios HTML no conocen los enteros, números de coma flotante
   y otros booleanos. Para saber si una estructura es un entero, utilice
   <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">Nota</strong>: 
  <p class="para">
   La línea <code class="literal">if ($x)</code> genera un error de nivel
   <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong> cuando <var class="varname">$x</var> está
   indefinido. Alternativamente, utilice las funciones
   <span class="function"><a href="function.empty.php" class="function">empty()</a></span> o <span class="function"><a href="function.isset.php" class="function">isset()</a></span>, o inicialice todas sus variables.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Nota</strong>: 
  <p class="para">
   Las operaciones numéricas pueden dar como resultado un valor representado por la
   constante <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>. Todas las comparaciones de este valor
   con cualquier otro valor, incluyendo el mismo valor, excepto <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>
   tendrán como resultado <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
   (i.e. <code class="literal">NAN != NAN</code> y <code class="literal">NAN !== NAN</code>).
   Ejemplos de operaciones que producen el valor <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>, y
   <code class="literal">acosh(0)</code>.
  </p>
 </p></blockquote>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Comparaciones de <var class="varname">$x</var> con funciones PHP</strong></caption>
   
    <thead>
     <tr>
      <th>Expresión</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> está indefinido</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>Comparación amplia con <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> anterior a PHP 8.0.0.
 </p>

 <p class="para">
  <table id="type.comparisons-strict" class="doctable table">
   <caption><strong>Comparación estricta con <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); ?>