<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'intlchar.chardigitvalue.php',
    1 => 'IntlChar::charDigitValue',
    2 => 'Get the decimal digit value of a decimal digit character',
  ),
  'up' => 
  array (
    0 => 'class.intlchar.php',
    1 => 'IntlChar',
  ),
  'prev' => 
  array (
    0 => 'intlchar.charage.php',
    1 => 'IntlChar::charAge',
  ),
  'next' => 
  array (
    0 => 'intlchar.chardirection.php',
    1 => 'IntlChar::charDirection',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlchar/chardigitvalue.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlchar.chardigitvalue" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlChar::charDigitValue</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">IntlChar::charDigitValue</span> &mdash; <span class="dc-title">Get the decimal digit value of a decimal digit character</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlchar.chardigitvalue-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>IntlChar::charDigitValue</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.integer.php" class="type int">int</a></span></span></div>

  <p class="para rdfs-comment">
   Returns the decimal digit value of a decimal digit character.
  </p>
  <p class="para">
   Such characters have the general category &quot;Nd&quot; (decimal digit numbers) and a Numeric_Type of Decimal.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlchar.chardigitvalue-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">codepoint</code></dt>
    <dd>
     <p class="para">Ein Wert vom Typ <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>, der einen Codepoint darstellt (z. B. <code class="literal">0x2603</code> für <em>U+2603 SNOWMAN</em>) oder ein als UTF-8-<span class="type"><a href="language.types.string.php" class="type String">String</a></span> kodiertes Zeichen (z. B. <code class="literal">&quot;\u{2603}&quot;</code>)</p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlchar.chardigitvalue-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   The decimal digit value of <code class="parameter">codepoint</code>,
   or <code class="literal">-1</code> if it is not a decimal digit character. Returns <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-intlchar.chardigitvalue-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 Testen unterschiedlicher Codepoints</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">charDigitValue</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">charDigitValue</span><span style="color: #007700">(</span><span style="color: #DD0000">"\u{0662}"</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">charDigitValue</span><span style="color: #007700">(</span><span style="color: #DD0000">"\u{0E53}"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div>
   <div class="example-contents screen">
    <div class="examplescode"><pre class="examplescode">int(1)
int(2)
int(3)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlchar.chardigitvalue-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="intlchar.getnumericvalue.php" class="function" rel="rdfs-seeAlso">IntlChar::getNumericValue()</a> - Get the numeric value for a Unicode code point</span></li>
   </ul>
  </p>
 </div>


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