<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intlchar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'intlchar.isxdigit.php',
    1 => 'IntlChar::isxdigit',
    2 => 'Verifica si un punto de c&oacute;digo es un d&iacute;gito hexadecimal',
  ),
  'up' => 
  array (
    0 => 'class.intlchar.php',
    1 => 'IntlChar',
  ),
  'prev' => 
  array (
    0 => 'intlchar.iswhitespace.php',
    1 => 'IntlChar::isWhitespace',
  ),
  'next' => 
  array (
    0 => 'intlchar.ord.php',
    1 => 'IntlChar::ord',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/intl/intlchar/isxdigit.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlchar.isxdigit" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlChar::isxdigit</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">IntlChar::isxdigit</span> &mdash; <span class="dc-title">Verifica si un punto de código es un dígito hexadecimal</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlchar.isxdigit-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>IntlChar::isxdigit</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$codepoint</code></span>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span></div>

  <p class="para rdfs-comment">
   Determina si el punto de código especificado es un dígito hexadecimal.
  </p>
  <p class="para">
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> para los caracteres de categoría general &quot;Nd&quot; (dígitos decimales)
   así como las letras latinas a-f y A-F en ASCII y ASCII completo.
   (Es decir, para las letras con puntos de código 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)
  </p>
  <p class="para">
   Esto es equivalente a <code class="literal">IntlChar::digit($codepoint, 16) &gt;= 0</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlchar.isxdigit-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">codepoint</code></dt>
    <dd>
     <p class="para">El valor <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> del punto de código (por ejemplo, <code class="literal">0x2603</code> para <em>U+2603 SNOWMAN</em>), o el carácter codificado como un <span class="type"><a href="language.types.string.php" class="type string">string</a></span> UTF-8 (por ejemplo, <code class="literal">&quot;\u{2603}&quot;</code>)</p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlchar.isxdigit-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si
   <code class="parameter">codepoint</code> es un dígito hexadecimal, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en caso contrario. Devuelve <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> en caso de error.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-intlchar.isxdigit-examples">
  <h3 class="title">Ejemplos</h3>
  <div class="example" id="example-1">
   <p><strong>Ejemplo #1 Probar diferentes puntos de código</strong></p>
   <div class="example-contents">
    <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">isxdigit</span><span style="color: #007700">(</span><span style="color: #DD0000">"A"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">isxdigit</span><span style="color: #007700">(</span><span style="color: #DD0000">"1"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">isxdigit</span><span style="color: #007700">(</span><span style="color: #DD0000">"\u{2603}"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>El ejemplo anterior mostrará:</p></div>
   <div class="example-contents screen">
    <div class="examplescode"><pre class="examplescode">bool(true)
bool(true)
bool(false)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-intlchar.isxdigit-notes">
  <h3 class="title">Notas</h3>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    Para restringir la definición de dígitos hexadecimales únicamente a los caracteres ASCII, utilice:
   </p>
   <div class="example-contents">
    <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$isASCIIHexadecimal </span><span style="color: #007700">= </span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">ord</span><span style="color: #007700">(</span><span style="color: #0000BB">$codepoint</span><span style="color: #007700">) &lt;= </span><span style="color: #0000BB">0x7F </span><span style="color: #007700">&amp;&amp; </span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">isxdigit</span><span style="color: #007700">(</span><span style="color: #0000BB">$codepoint</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlchar.isxdigit-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="intlchar.isdigit.php" class="function" rel="rdfs-seeAlso">IntlChar::isdigit()</a> - Verifica si un punto de c&oacute;digo es un d&iacute;gito</span></li>
    <li><span class="function"><a href="function.ctype-xdigit.php" class="function" rel="rdfs-seeAlso">ctype_xdigit()</a> - Chequear posibles caracteres que representen un d&iacute;gito hexadecimal</span></li>
   </ul>
  </p>
 </div>


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