<?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.getintpropertyvalue.php',
    1 => 'IntlChar::getIntPropertyValue',
    2 => 'Get the value for a Unicode property for a code point',
  ),
  'up' => 
  array (
    0 => 'class.intlchar.php',
    1 => 'IntlChar',
  ),
  'prev' => 
  array (
    0 => 'intlchar.getintpropertyminvalue.php',
    1 => 'IntlChar::getIntPropertyMinValue',
  ),
  'next' => 
  array (
    0 => 'intlchar.getnumericvalue.php',
    1 => 'IntlChar::getNumericValue',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlchar/getintpropertyvalue.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlchar.getintpropertyvalue" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlChar::getIntPropertyValue</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">IntlChar::getIntPropertyValue</span> &mdash; <span class="dc-title">Get the value for a Unicode property for a code point</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlchar.getintpropertyvalue-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::getIntPropertyValue</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="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$property</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">
   Gets the property value for an enumerated or integer Unicode property for a code point.
   Also returns binary and mask property values.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlchar.getintpropertyvalue-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>
   
   
    <dt><code class="parameter">property</code></dt>
    <dd>
     <p class="para">Die Unicode-Eigenschaft, die gesucht werden soll (siehe die <code class="literal">IntlChar::PROPERTY_*</code>-Konstanten).</p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlchar.getintpropertyvalue-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns the numeric value that is directly the property value or, for enumerated properties, corresponds to the
   numeric value of the enumerated constant of the respective property value enumeration type. Returns <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> on failure.
  </p>
  <p class="para">
   Returns <code class="literal">0</code> or <code class="literal">1</code> (for <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>/<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>) for binary Unicode properties.
  </p>
  <p class="para">
   Returns a bit-mask for mask properties.
  </p>
  <p class="para">
   Returns <code class="literal">0</code> if <code class="parameter">property</code> is out of bounds or if the Unicode version does not
   have data for the property at all, or not for this code point.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-intlchar.getintpropertyvalue-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 Testen unterschiedlicher Eigenschaften</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">getIntPropertyValue</span><span style="color: #007700">(</span><span style="color: #DD0000">"A"</span><span style="color: #007700">, </span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">PROPERTY_ALPHABETIC</span><span style="color: #007700">) === </span><span style="color: #0000BB">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">getIntPropertyValue</span><span style="color: #007700">(</span><span style="color: #DD0000">"["</span><span style="color: #007700">, </span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">PROPERTY_BIDI_MIRRORED</span><span style="color: #007700">) === </span><span style="color: #0000BB">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">getIntPropertyValue</span><span style="color: #007700">(</span><span style="color: #DD0000">"Φ"</span><span style="color: #007700">, </span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">PROPERTY_BLOCK</span><span style="color: #007700">) === </span><span style="color: #0000BB">IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">BLOCK_CODE_GREEK</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">bool(true)
bool(true)
bool(true)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlchar.getintpropertyvalue-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="intlchar.hasbinaryproperty.php" class="function" rel="rdfs-seeAlso">IntlChar::hasBinaryProperty()</a> - Check a binary Unicode property for a code point</span></li>
    <li><span class="function"><a href="intlchar.getintpropertyminvalue.php" class="function" rel="rdfs-seeAlso">IntlChar::getIntPropertyMinValue()</a> - Get the min value for a Unicode property</span></li>
    <li><span class="function"><a href="intlchar.getintpropertymaxvalue.php" class="function" rel="rdfs-seeAlso">IntlChar::getIntPropertyMaxValue()</a> - Get the max value for a Unicode property</span></li>
    <li><span class="function"><a href="intlchar.getunicodeversion.php" class="function" rel="rdfs-seeAlso">IntlChar::getUnicodeVersion()</a> - Get the Unicode version</span></li>
   </ul>
  </p>
 </div>


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